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!
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
How do we declare variables if we have multiple radio buttons in html and would like to use it as a feedback form to send it thru the use of php codes?
If I have these codes in html:
Is that how we declare or use the radio buttons? The use could only choose one from Mr Mrs and Ms. But it should also only send one title that is chosen when the user fills up the form. So ... is there something wrong with my declarations? Thanks.
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
In order to use multiple radio buttons or check boxex use thier 'value' attribute and also use 'checked = "checked"'. When a user selects a radio button, then its 'value = 'assigned_val' becomes true and in such cases u can make 'checked ="checked"'. Remember to have common 'name' for the radio/check button group, so that only one radio button will be checked as well as remember to have atleast one button checked by default.