[FX.php List] Radio buttons not displaying in some browsers

Jonathan Schwartz jonathan at eschwartz.com
Sat Oct 8 14:18:04 MDT 2005

That was it!. I added a space both in front and in back of "checked".



>For me, it would be a bit easier to tell looking at the code 
>post-paring (i.e. what comes up when you view source in your 
>After all, the problem is at render time, not parse time.  That 
>said, I wonder if the problem is whitespace.  It looks to me like 
>your checked attribute would come up squashed between the closing 
>quote on the value and the "/" at the end of the tag.  If that's the 
>case, just add a space in your echo statement like this: " checked". 
>--Chris Hansen
>   creator of FX.php
>   "The best way from FileMaker to the Web."
>   www.iViking.org
>On Oct 8, 2005, at 9:44 AM, Jonathan Schwartz wrote:
>>I am having a problem with display of checked radio button on some browsers.
>>Here's what I know:
>>     Firefox    Works
>>     Safari    Doesn't work
>>     Explorer    Doesn't work
>>     Explorer    Works
>>While the radio buttons can be checked in all cases, and the data 
>>is received, the problem is that radio button does not display 
>>checked when it should.
>>Example code:
>>     Number of Households:
>>     <input type="radio" name="sameasparent1" id="samesparent1" 
>>     if($findData['sameasparent1'][0] =="One") echo "checked";?>/>One
>>     <input type="radio" name="sameasparent1" id="sameasparent1" 
>>     if($findData['sameasparent1'][0] =="Two") echo "checked";?>/>Two
>>Check boxes work fine.
>>Any suggestion?
>>FX.php_List mailing list
>>FX.php_List at mail.iviking.org
>FX.php_List mailing list
>FX.php_List at mail.iviking.org

More information about the FX.php_List mailing list