Hi to all
I got a very silly problem with radio button, In my site i have 3 radio button, in the edit personal profile section i gave use three options of contact, mail, phone letter, and these radio's are filled from database with the values he has choosen. In IE safari it is running well but in firefox , it creating problem. In firefox it is not allowing to change the radio button, here the code.
<tr>
<td width="37%" class="text12grey"><div align="left">Preferred contact method</div></td>
<td width="61%"><label>
<input type="radio" name="method" id="method1" value="mail" <?php if ($row[contact_method] == 'mail'){ ?> checked="checked" <?php }?>/>
<span class="style3"> Mail </span>
<input type="radio" name="method" id="method2" value="phone" <?php if ($row[contact_method] == 'phone'){ ?> checked="checked" <?php }?> />
<span class="style3">Phone</span>
<input type="radio" name="method" id="method3" value="post" <?php if ($row[contact_method] == 'post'){ ?> checked="checked" <?php }?> />
<span class="style3"> Post </span></label></td>
</tr>
And thanks in advance for any help..
A silly problem with radio buton in firefox
Moderator: General Moderators
-
jawedshamshedi
- Forum Commoner
- Posts: 35
- Joined: Fri May 16, 2008 1:17 am
- Location: India
- Contact:
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: A silly problem with radio buton in firefox
When you say FireFox doesn't allow you to change the radio option, do you mean in the user interface or can the radio buttons change in the FORM but they don't seem to persist when submitted to the server?
Could be a cache issue, have you cleared your cache or are you setting no-cache headers?
Sometimes certain markup will prevent form controls from functioning properly...
I assume it's either a cache issue or something wonky with your CSS/HTML.
Could be a cache issue, have you cleared your cache or are you setting no-cache headers?
Sometimes certain markup will prevent form controls from functioning properly...
I assume it's either a cache issue or something wonky with your CSS/HTML.
-
sureshmaharana
- Forum Commoner
- Posts: 30
- Joined: Thu Jul 03, 2008 4:20 am
- Contact:
Re: A silly problem with radio buton in firefox
Try it,
<tr>
<td width="37%" class="text12grey"><div align="left">Preferred contact method</div></td>
<td width="61%"><label>
<input type="radio" name="method" id="method1" value="mail" <?php if ($row[contact_method] == 'mail'){ ?> checked <?php }?>/>
<span class="style3"> Mail </span>
<input type="radio" name="method" id="method2" value="phone" <?php if ($row[contact_method] == 'phone'){ ?> checked <?php }?> />
<span class="style3">Phone</span>
<input type="radio" name="method" id="method3" value="post" <?php if ($row[contact_method] == 'post'){ ?> checked <?php }?> />
<span class="style3"> Post </span></label></td>
</tr>
<tr>
<td width="37%" class="text12grey"><div align="left">Preferred contact method</div></td>
<td width="61%"><label>
<input type="radio" name="method" id="method1" value="mail" <?php if ($row[contact_method] == 'mail'){ ?> checked <?php }?>/>
<span class="style3"> Mail </span>
<input type="radio" name="method" id="method2" value="phone" <?php if ($row[contact_method] == 'phone'){ ?> checked <?php }?> />
<span class="style3">Phone</span>
<input type="radio" name="method" id="method3" value="post" <?php if ($row[contact_method] == 'post'){ ?> checked <?php }?> />
<span class="style3"> Post </span></label></td>
</tr>
-
jawedshamshedi
- Forum Commoner
- Posts: 35
- Joined: Fri May 16, 2008 1:17 am
- Location: India
- Contact:
Re: A silly problem with radio buton in firefox
@Hockey
yea i mean the user interface, by default a radio button is checked as user checked it while filling the form,but now when the user want to change the radio button , it is not changing, the radio button which is checked previously remains checked, user is not able to modify it.....
yea i mean the user interface, by default a radio button is checked as user checked it while filling the form,but now when the user want to change the radio button , it is not changing, the radio button which is checked previously remains checked, user is not able to modify it.....