• Advertisement
Sign in to follow this  

[web] PHP question

This topic is 4282 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement