Page 1 of 1

About calling radiobutton value from HTML to PHP

Posted: Mon Mar 09, 2009 7:44 am
by Akirien
How to call radiobutton value from HTML to PHP?
For example..

Customer need to choose either BASIC MEMBER or PRIVILEGED MEMBER in HTML form.
If they checked BASIC MEMBER, I want to count the price within its condition (in PHP)

Radiobutton in HTML :

<INPUT TYPE = "radio" NAME = "member" VALUE = "Basic">Basic Member


Please Help Me :cry:

Re: About calling radiobutton value from HTML to PHP

Posted: Mon Mar 09, 2009 8:05 am
by susrisha
in the action page(php), you will be able to access the value of the radio button

Code: Select all

 
$radio_value= $_REQUEST['member'];//REQUEST can be changed to post or get depending on the method
 
In your case if the user selected that value, $radio_value will be "Basic"