Page 1 of 1

A silly problem with radio buton in firefox

Posted: Tue Jul 15, 2008 6:38 am
by jawedshamshedi
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..

Re: A silly problem with radio buton in firefox

Posted: Tue Jul 15, 2008 7:09 am
by alex.barylski
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.

Re: A silly problem with radio buton in firefox

Posted: Tue Jul 15, 2008 7:12 am
by sureshmaharana
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>

Re: A silly problem with radio buton in firefox

Posted: Tue Jul 15, 2008 7:28 am
by jawedshamshedi
@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.....

Re: A silly problem with radio buton in firefox

Posted: Tue Jul 15, 2008 8:10 am
by Dynamis
This has already been answered.

viewtopic.php?f=34&t=85511