Languages :: PHP :: Radio Button PHP Values |
|||
| By: PHP newbee |
Date: 26/07/2003 00:00:00 |
Points: 300 | Status: Answered Quality : Excellent |
|
Ok, so I have an HTM file that includes this: <input type=radio name=issue value="var1">var1 <input type=radio name=issue value="var2">var2 <input type=radio name=issue value="var3">var3 on the PHP page if I do a: print $_POST['issue']; all I get is "on" How would I send the actual value to the PHP script? |
|||
| By: VGR | Date: 26/07/2003 03:18:00 | Type : Answer |
|
| don't do a print $_post['issue'], do this to sort the problem out : echo '<pre>'; print_r($_POST); echo '</pre>'; |
|||
| By: PHP newbee | Date: 26/07/2003 03:43:00 | Type : Comment |
|
| So, I get: Array ( [ticket] => 442379 [issue] => var1 [submit] => Update ) Now what??? |
|||
| By: PHP newbee | Date: 26/07/2003 03:58:00 | Type : Comment |
|
| I guess I should clarify, I am printing for testing puposes... this will acually be sent to a MySQL DB. Will it send "on" or will it send "var1" to the DB? |
|||
| By: PHP newbee | Date: 26/07/2003 04:30:00 | Type : Comment |
|
| ok, I got it... thanks |
|||
| By: VGR | Date: 26/07/2003 17:41:00 | Type : Comment |
|
| normally, your statement should have printed 'var1' |
|||
|
Do register to be able to answer |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








