Jump to content

Archived

This topic is now archived and is closed to further replies.

mrjameer

radio buttons with php

Recommended Posts

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

Share this post


Link to post
Share on other sites
[url=http://www.propergrammar.com/]This Will Help You With All Your Needs.[/url]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.