[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".

Thanks!

Jonathan


>Jonathan,
>
>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 
>browser?)  
>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". 
>HTH
>
>--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:
>
>>Hello,
>>
>>I am having a problem with display of checked radio button on some browsers.
>>
>>Here's what I know:
>>
>>OSX
>>     Firefox    Works
>>     Safari    Doesn't work
>>     Explorer    Doesn't work
>>
>>XP
>>     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" 
>>value="One"<?php
>>     if($findData['sameasparent1'][0] =="One") echo "checked";?>/>One
>>
>>     <input type="radio" name="sameasparent1" id="sameasparent1" 
>>value="Two"<?php
>>     if($findData['sameasparent1'][0] =="Two") echo "checked";?>/>Two
>>
>>Check boxes work fine.
>>
>>
>>Any suggestion?
>>
>>Jonathan
>>_______________________________________________
>>FX.php_List mailing list
>>FX.php_List at mail.iviking.org
>>http://www.iviking.org/mailman/listinfo/fx.php_list
>>
>
>_______________________________________________
>FX.php_List mailing list
>FX.php_List at mail.iviking.org
>http://www.iviking.org/mailman/listinfo/fx.php_list



More information about the FX.php_List mailing list