Jump to content


Photo

radio buttons with php


  • Please log in to reply
1 reply to this topic

#1 mrjameer

mrjameer
  • Members
  • PipPipPip
  • Advanced Member
  • 102 posts

Posted 18 September 2006 - 04:04 PM

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
<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

#2 Hepp

Hepp
  • Members
  • PipPipPip
  • Advanced Member
  • 33 posts

Posted 18 September 2006 - 04:37 PM

This Will Help You With All Your Needs.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users