Re: [PHP] Selected Radio Buttons

2001-04-14 Thread Jordan Elver
Hi, The $article_active comes from a session and I want be able to select the radio button (which ever one, yes or no) when the user comes back to the page. I think thats a bit clearer :-) Jord On Saturday 14 April 2001 15:12, you wrote: > I'm not sure I understand. In the first loop you are s

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 it

[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"Yes"; } else { echo"Yes"; } if($article_active == 'n') { echo"No"; } else { echo"No"; } Thanks, Jor