Page 1 of 1

Help on radio buttons !

Posted: Wed Aug 20, 2008 9:53 am
by hamedx
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

Re: Help on radio buttons !

Posted: Wed Aug 20, 2008 9:56 am
by ghurtado
Read your post one more time. Did you ask a question in it? I think not.

What specifically do you need?

Re: Help on radio buttons !

Posted: Wed Aug 20, 2008 10:04 am
by hamedx
ghurtado wrote:ghurtado
thanks for reply , i want code for sending the value of radio buttons to mysql database's table .

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>
i want when someone hit one of this radio , the value going to database table .

Re: Help on radio buttons !

Posted: Wed Aug 20, 2008 10:22 am
by hamedx
i want something like this :
Image

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

Image

Re: Help on radio buttons !

Posted: Wed Aug 20, 2008 12:11 pm
by ghurtado
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!