hi .
i must complete my php project for my school and my project is a registration form , my problem is im newbie to PHP and i dont know how can i develop the radio buttons as gender (male and female) to my form and when someone hit that the value goes to mysql . after all i hate to waste members precious time and after getting to problem , im googlize myself for solving , but this problem i think never be solved ,
can someone help me how can i write this ?
thanks in advanced
Help on radio buttons !
Moderator: General Moderators
Help on radio buttons !
Last edited by hamedx on Wed Aug 20, 2008 10:09 am, edited 1 time in total.
Re: Help on radio buttons !
Read your post one more time. Did you ask a question in it? I think not.
What specifically do you need?
What specifically do you need?
Re: Help on radio buttons !
thanks for reply , i want code for sending the value of radio buttons to mysql database's table .ghurtado wrote:ghurtado
this is the code :
Code: Select all
<p><input type="radio" name="test" value="male"> male <br />
<p><input type="radio" name="test" value="female"> female <br />
<p><input type="submit" value="Submit" name="B1"></p>Re: Help on radio buttons !
i want something like this :

when someone submit this form then value of gender (male or female) going to database :


when someone submit this form then value of gender (male or female) going to database :

Re: Help on radio buttons !
Start with this basic tutorial:
http://devzone.zend.com/node/view/id/641
That will get you on your way to writing to the database in no time.
Good luck!
http://devzone.zend.com/node/view/id/641
That will get you on your way to writing to the database in no time.
Good luck!