On my index.php page I want to check to see if a variable has been passed (e.g. index.php?product=ipod).
If the "product" variable is there, I want to run one set of code. If it is not there, I want it to run another set of code.
How do I do that?
if (isset($_GET['product'])) { // Product is set, do something } else { // its not set, do something else }
Great, thank you!