homepage Welcome to WebmasterWorld Guest from 54.197.183.230
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
PHP Radio Button Forms
Displaying information from radio buttons in a form
appleg5ive

10+ Year Member



 
Msg#: 2502 posted 8:45 pm on Jan 9, 2004 (gmt 0)

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.

 

KMxRetro

10+ Year Member



 
Msg#: 2502 posted 2:12 am on Jan 10, 2004 (gmt 0)

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.

appleg5ive

10+ Year Member



 
Msg#: 2502 posted 10:39 am on Jan 10, 2004 (gmt 0)

Right thanks, I'll give it a shot.

appleg5ive

10+ Year Member



 
Msg#: 2502 posted 4:22 pm on Jan 10, 2004 (gmt 0)

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.

coopster

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



 
Msg#: 2502 posted 4:53 pm on Jan 10, 2004 (gmt 0)

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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved