|
 |
pro_jsp thread: radio buttons
Message #1 by "Manal Rayess" <m_rayess@h...> on Sat, 19 May 2001 11:24:02
|
|
We can pass value of radio button. Only a button which was checked, have
a value.... another button (unchecked) don't have a value.
We can test that by below ex:
<HTML>
<BODY>
<form action="a.htm" method=get>
<input type="radio" name="myRadio" value=1 checked>
<input type="radio" name="myRadio" value=2>
<input type="radio" name="myRadio" value=3>
<input type="radio" name="myRadio" value=4>
<input type="submit" value=submit>
</form>
</BODY>
</HTML>
and a.htm is:
<HTML>
Just test
</HTML>
when we press submit, myRadio have a appropriate value.. pls note on
address bar of IE
Be Happy
Apache
Do your radio buttons have a same name or not ??
-----Original Message-----
From: "Jeroen T. Wenting" <jwenting@h...>
To: "Pro_JavaServer_Pages" <pro_jsp@p...>
Date: Sun, 20 May 2001 16:32:50 +0200
Subject: [pro_jsp] RE: radio buttons
> the value value (hmm, confusing :) ) gets passed? have to check on
> that...
>
> > -----Original Message-----
> > From: Charles Arehart [mailto:carehart@s...]
> > Sent: 20 May 2001 04:01
> > To: Pro_JavaServer_Pages
> > Subject: [pro_jsp] RE: radio buttons
> >
> >
> > No, if you use a "value" attribute as in <input type="Radio" name="x"
> > value="y">, that y value is passed as well. Or were you each
> > referring to
> > something else?
> >
> > -----Original Message-----
> > From: Jeroen T. Wenting [mailto:jwenting@h...]
> > Sent: Saturday, May 19, 2001 1:37 PM
> > To: Pro_JavaServer_Pages
> > Subject: [pro_jsp] RE: radio buttons
> >
> >
> > Value is not passed for radiobuttons, only the state is passed.
> >
> > > -----Original Message-----
> > > From: Manal Rayess [mailto:m_rayess@h...]
> > > Sent: 19 May 2001 11:24
> > > To: Pro_JavaServer_Pages
> > > Subject: [pro_jsp] radio buttons
> > >
> > >
> > > I have multiple radio buttons with different values how can
> > I get the
> > > value of them?
|
|
 |