Help on radio buttons !

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hamedx
Forum Newbie
Posts: 8
Joined: Wed Aug 20, 2008 9:38 am

Help on radio buttons !

Post 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
Last edited by hamedx on Wed Aug 20, 2008 10:09 am, edited 1 time in total.
User avatar
ghurtado
Forum Contributor
Posts: 334
Joined: Wed Jul 23, 2008 12:19 pm

Re: Help on radio buttons !

Post by ghurtado »

Read your post one more time. Did you ask a question in it? I think not.

What specifically do you need?
hamedx
Forum Newbie
Posts: 8
Joined: Wed Aug 20, 2008 9:38 am

Re: Help on radio buttons !

Post 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 .
hamedx
Forum Newbie
Posts: 8
Joined: Wed Aug 20, 2008 9:38 am

Re: Help on radio buttons !

Post by hamedx »

i want something like this :
Image

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

Image
User avatar
ghurtado
Forum Contributor
Posts: 334
Joined: Wed Jul 23, 2008 12:19 pm

Re: Help on radio buttons !

Post 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!
Post Reply