really easy question but baffling me
Posted: Mon Mar 15, 2004 10:41 am
I have a set of radio buttons in a group
one returns yes
one returns no
i can read then in to my next for that is no problem but for some reason i am having problems checking to see which one was returned..
$brochure = $_POST['brochure'];
reads in the value
I have tried using an if statement to see if it is yes but noting seems to work
i have tried
$ bro = "yes";
if ($brochure == $bro)
{ etc
and
if ($brochure == 'yes')
{ etc
what is the correct syntax for comparing strings to see is they are the same I acn find syntax for loads of others but this must be too simple for the book!!!!
please help if i bang my head anymore i will have to replaster again....
one returns yes
one returns no
i can read then in to my next for that is no problem but for some reason i am having problems checking to see which one was returned..
$brochure = $_POST['brochure'];
reads in the value
I have tried using an if statement to see if it is yes but noting seems to work
i have tried
$ bro = "yes";
if ($brochure == $bro)
{ etc
and
if ($brochure == 'yes')
{ etc
what is the correct syntax for comparing strings to see is they are the same I acn find syntax for loads of others but this must be too simple for the book!!!!
please help if i bang my head anymore i will have to replaster again....