Sign in to follow this  
newera

[web] PHP question

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this