|
| Author |
Message |
Triumvirate
Joined: 24 Feb 2004
Posts: 169
Location: NY, USA
|
Posted: 3/26/2006, 8:16 pm Post subject: Radio buttons and PHP |
|
|
Never done this before so how exactly does it work. Let's say I have 3 radio buttons numbered 1, 2, and 3. When I use the $_POST to get the value of that does it automatically get the value of say, 1 if I have that one selected by just using the name="" part of the radio button tag? Or is there some special way to do radio buttons?
Hope that makes sense. _________________ GamingMMO.com |
|
| Back to top |
|
 |
Keith
Moderator
Joined: 28 Jan 2004
Posts: 434
Location: Dublin, Ireland
|
Posted: 3/27/2006, 4:28 pm Post subject: |
|
|
Give each radio button the same name attribute, but a different value attribute.
Then use $_POST['radioname']; to get the value of the chosen radio button. _________________ Keith McLaughlin - DeveloperCube Moderator
Web Hosting Directory - Freelance Web Design - Webmaster Resources |
|
| Back to top |
|
 |
|