Skip to main content
gamedev.net
🔒 Locked

[web] PHP question

Started by newera 2 replies 350+ views
Original Post
newera
newera
Hello all, I have a fairly easy question(hopefully), how do I get the value of a radio button with php? HTML:

<td class="Arial12BlackBold">   
Mr. <input type="radio"  name="rdSal2" checked="yes" value="Mr." id="rdMr">     Ms. <input type="radio"   name="rdSal2" value="Ms." id="rdMS">	              Mrs.<input type="radio"  name="rdSal2"  value="Mrs." id="rdMrs">			Dr. <input type="radio"   name="rdSal2" value="Dr." id="rdDr">
	              </td>
Thanks, Tony
tstrimp
tstrimp
Quote:
Original post by Pipo DeClown
?php

$_POST['rdSal2'];

?


OR

$_GET['rdSal2'] depending on how you send the data. $_REQUEST has both $_GET and $_POST data.
newera
newera
Thanks much!

-Tony

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.