rgrne Posted September 3, 2006 Share Posted September 3, 2006 I just noticed that a group of radio buttons in a website I am developing don't work with Internet Explorer 6. They work fine with IE5, Mozilla, and Firefox. The only references to this problem that I have been able to find are related to Javascript and present work arounds that use Javascript. But I am not using Javascript, just PHP and HTML. I have also posted this in the PHP forum, since I am not entirely sure that it is not a PHP issue. Are there any options tow work around this using just HTML or PHP?This is the code that I am using. It's PHP but the PHP is just being used to print HTML script. These lines occur inside a for loop that changes the value of $entry2 fo each button. print "<tr align=\"center\" valign=\"middle\">"; print "<td><input type=\"radio\" name=\"game\" value=\"$entry2\" /></td>"; print "<td>$entry1</td>"; print "<td>$entry2</td>"; print "<td>$entry3</td>"; print "<td>$entry4</td>"; print "<td><input type=\"hidden\" name=\"gamepass\" value=\"$entry5\" /></td>"; print "</tr>";I also tried being more XHTML complient by including an ID tag that was different for each button, but to no avail: print "<tr align=\"center\" valign=\"middle\">"; print "<td><input type=\"radio\" name=\"game\" id=\"$entry2\" value=\"$entry2\" /></td>"; print "<td>$entry1</td>"; print "<td>$entry2</td>"; print "<td>$entry3</td>"; print "<td>$entry4</td>"; print "<td><input type=\"hidden\" name=\"gamepass\" value=\"$entry5\" /></td>"; print "</tr>"; Quote Link to comment https://forums.phpfreaks.com/topic/19615-how-do-i-get-radio-buttons-to-work-with-ie6/ Share on other sites More sharing options...
rgrne Posted September 4, 2006 Author Share Posted September 4, 2006 Nevermind - managed to solve it on my own. Tis had nothing to do with syntax for the form. Turned out that in image outside of the form was creating some kind of "shadow" that only allowed buttons directly above it to work. Totally diferent issue. Quote Link to comment https://forums.phpfreaks.com/topic/19615-how-do-i-get-radio-buttons-to-work-with-ie6/#findComment-85478 Share on other sites More sharing options...
ToonMariner Posted September 4, 2006 Share Posted September 4, 2006 Always validate your html if there is a problem with forms (always validate it anyway!) Quote Link to comment https://forums.phpfreaks.com/topic/19615-how-do-i-get-radio-buttons-to-work-with-ie6/#findComment-85484 Share on other sites More sharing options...
dustinnoe Posted September 4, 2006 Share Posted September 4, 2006 You may also want to consider escaping php when writing a large chunk of html. Editors can then highlight your html syntax which will help you notice problems sooner. If you need to include a php variable just slap a couple of php tags around it. Quote Link to comment https://forums.phpfreaks.com/topic/19615-how-do-i-get-radio-buttons-to-work-with-ie6/#findComment-85618 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.