sk121506 Posted March 22, 2008 Share Posted March 22, 2008 Even tho it's through a paypal script, it should still be ok. I have tested my site and since i have two drop-down lists i want to separate the two options. for some reason, my options are getting mixed up. I have a few if statements but each time selection "2" is ordered, the if statements always revert back to "1". Any help would be great. Hope i'm clear enough. if($option_selection2 = "1"){ echo "blah blah"; } elseif($option_selection2 = "2"){ echo "more blah"; } Link to comment https://forums.phpfreaks.com/topic/97308-this-should-be-simple-but-not-working-right/ Share on other sites More sharing options...
cooldude832 Posted March 22, 2008 Share Posted March 22, 2008 = isn't a comparison operator its to define something you want if($option_section2 == "1"){ echo "blah blah"; } etc. Link to comment https://forums.phpfreaks.com/topic/97308-this-should-be-simple-but-not-working-right/#findComment-497984 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.