[PHP] Selected Radio Buttons

2001-04-14 Thread Jordan Elver
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\" SELECTEDYes"; } else { echo"INPUT TYPE=\"radio\" NAME=\"active\"

Re: [PHP] Selected Radio Buttons

2001-04-14 Thread Plutarck
I'm not sure I understand. In the first loop you are seing if $article_active equals y. And no where in the code do you set $article_active to anything else. Why would you think $article_active would be anything but "y" or "n"? -- Plutarck Should be working on something... ...but forgot what