Selected Radio Buttons

From: Date: Sat, 14 Apr 2001 15:47:40 +0000
Subject: Selected Radio Buttons
Groups: php.general 
Request: Send a blank email to php-general+get-48547@lists.php.net to get a copy of this message
Hi, I think I'm being stupid. Why won't this code work. The $article_active variable is showing y when I echo it? if($article_active == 'y') { echo"<INPUT TYPE=\"radio\" NAME=\"active\" VALUE=\"y\" SELECTED>Yes"; } else { echo"<INPUT TYPE=\"radio\" NAME=\"active\" VALUE=\"y\">Yes"; } if($article_active == 'n') { echo"<INPUT TYPE=\"radio\" NAME=\"active\" VALUE=\"n\" SELECTED>No"; } else { echo"<INPUT TYPE=\"radio\" NAME=\"active\" VALUE=\"n\">No"; } Thanks, Jord

« previous php.general (#48547) next »