GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 18-Sep-2006, 11:19
mrjameer mrjameer is offline
New Member
 
Join Date: Aug 2006
Posts: 19
mrjameer is on a distinguished road

radio buttons with php


hi,

i want to know how to validate multiple radiobuttons.for example
1.hobbies--radiobutton1[play],radobutton2[tv],radiobutton3[music] finally one submit button.when i click the radio button and press submit button,it should display the selected radio button value in a textbox1.

2.class--radiobutton1[business],radobutton2[executive],radiobutton3[normal] finally one submit button.when i click the radio button and press submit button,it should display the selected radio button value.
in a textbox2

means total 6 radiobuttons and 2 submit buttons how to handle it.i know with 3 radiobuttons and 1 submit button

here is code.just correct the mistakes
PHP Code:

<form name="fname" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>">
<b>hosting</b>
100<input type="radio" name="check[]" value="100">
200<input type="radio" name="check[]" value="200">
300<input type="radio" name="check[]" value="300">
value<input type="text" name="text1" value="<?php echo $check['0'];?>">
<input type="submit" value="submit">
<br><br><br>
<b>digichat</b>
100<input type="radio" name="check1[]" value="100">
200<input type="radio" name="check1[]" value="200">
300<input type="radio" name="check1[]" value="300">
value<input type="text" name="text1" value="<?php echo $check1['0'];?>">

<input type="submit" value="retrieve" 
onclick="this.form.action='<?php echo $_SERVER['PHP_SELF'];?>'"> 



i need your help

mrjameer
Last edited by LuciWiz : 18-Sep-2006 at 13:09. Reason: Please insert your Php code between [php] & [/php] tags
 
 

Recent GIDBlogProblems with the Navy (Chiefs) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Radio button, confirm or a message box Saru .NET Forum 3 22-Nov-2007 07:39
Group Round buttons (radio buttons) toaster FLTK Forum 1 03-Jan-2006 07:57
radio buttons drewdaman MS Visual C++ / MFC Forum 4 04-Dec-2005 10:49
collecting user input from radio buttons. Adelle29 Web Design Forum 1 31-May-2004 17:28
All the big PHP script collections that matter jrobbio MySQL / PHP Forum 5 06-Jun-2003 17:14

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 16:38.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.