Jump to content

If($_get['code']=#){do Stuff} ..?


cyfer65
 Share

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...