Jump to content

[SOLVED] Radio Group inside a while statement wont check


Asheeown

Recommended Posts

	  <input type=\"radio\" name=\"RadioGroup2\" value=\"Down\">
  Downed
  <input name=\"RadioGroup2\" type=\"radio\" value=\"Up\" checked>
  Still Standing

 

It's inside a while statement, and it echoes fine, the buttons are intact and the code shows it checked on the source, however it's just not selecting either button, any ideas?

Did you clear your cache after changing the code? Ctrl+F5.

 

If you refresh normally then the browser will select whatever was selected before.

 

I think only Firefox does that (IE doesn't anyway) - but I'm guessing that might be the problem.

while($BossRow = mysql_fetch_array($BossQuery)) {
extract($BossRow);
$Boss = $Name;
if($Status = "Up") {
$Checked3 = "checked";
} else {
$Checked4 = "checked";
}

	  <input type=\"radio\" name=\"RadioGroup2\" value=\"Down\" $Checked3>
	  Downed
	  <input name=\"RadioGroup2\" type=\"radio\" value=\"Up\" $Checked4>
	  Still Standing

 

I skipped everything in between and under it since it has nothing to do with this, this is the code im using to determine if it should be checked or not

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.