visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Languages :: PHP :: Radio Button PHP Values


By: PHP newbee U.S.A.  Date: 26/07/2003 00:00:00  English  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 English  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 English  Type : Comment
So, I get:

Array
(
[ticket] => 442379
[issue] => var1
[submit] => Update
)

Now what???
By: PHP newbee Date: 26/07/2003 03:58:00 English  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 English  Type : Comment
ok, I got it... thanks
By: VGR Date: 26/07/2003 17:41:00 English  Type : Comment
normally, your statement should have printed 'var1'

Do register to be able to answer

EContact
browser fav
page generated in 344.041110 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page