cyfer65 Posted July 21, 2009 Report Share Posted July 21, 2009 I'm making a PHP page that will do stuff based on the CODE # in the URLcan sumone please help me to correctly format the code below... *If no code is set then nothing happens..*If a number is set for the CODE parameter then I want it to do something.. if(isset($_GET['code'])){if($_GET['code']=1){Do Stuff}if($_GET['code']=2){Do Stuff}if($_GET['code']=2){Do Stuff}} Link to comment Share on other sites More sharing options...
smerny Posted July 21, 2009 Report Share Posted July 21, 2009 need a double equal sign for comparing stuff... single equal sign is for assigning values Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now