Welcome to WebmasterWorld Guest from 54.158.166.6

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

PHP Radio Button Forms

Displaying information from radio buttons in a form

   
8:45 pm on Jan 9, 2004 (gmt 0)

10+ Year Member



Hey, I am a novice at html, and although I am fairly competent at the basic programming, when it gets to complex coding (complex to me) I'm stuck, I have made a form using radio buttons in basic html, but with lack of foresight, I didn't realise that I do not have the knowledge to display the data without getting it on an e-mail and displaying it manually, I need some help with coding a php page to display information from a form with radio buttons, as nearly all tutorials I have found only tell you how to display text forms.
Any help will be much apppreciated, thanks.
2:12 am on Jan 10, 2004 (gmt 0)

10+ Year Member



Displaying the radio button value is exactly the same as displaying a text field's value. Just output it in PHP.

If your radio button is called "cheese" for example, dp <? echo $HTTP_POST_VARS["cheese"];?> and that should output the value.

10:39 am on Jan 10, 2004 (gmt 0)

10+ Year Member



Right thanks, I'll give it a shot.
4:22 pm on Jan 10, 2004 (gmt 0)

10+ Year Member



Is PHP like Pearl (Do you need to be online)? 'Cos I've got the code right for the html and the php pages, but it just won't work.
4:53 pm on Jan 10, 2004 (gmt 0)

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



PHP is a server-side language. If you are asking if you can open and use PHP pages in a browser like you can with HTML, the answer is no, not unless you are being served the pages by a web server with a PHP parser/processor installed.