frizzo Posted June 13, 2008 Share Posted June 13, 2008 I have this code: if ($_GET['product'] == 'game1') { header('Location: http://URL_HERE'); exit(); } How can I add an extra variable, such as a keyword to be caught from the URL the string, like: http://siteurl.com?product=game1&kw=gamex Thanks. Quote Link to comment Share on other sites More sharing options...
DarkWater Posted June 13, 2008 Share Posted June 13, 2008 What? Just add it on like you did in the example... O_O Quote Link to comment Share on other sites More sharing options...
frizzo Posted June 13, 2008 Author Share Posted June 13, 2008 So like this? if ($_GET['product'] == 'game1') && ($_GET == ['gamex']) Quote Link to comment Share on other sites More sharing options...
DarkWater Posted June 13, 2008 Share Posted June 13, 2008 $_GET['kw'] == 'gamex' Quote Link to comment Share on other sites More sharing options...
frizzo Posted June 13, 2008 Author Share Posted June 13, 2008 oh, yes -- that worked. Thanks alot! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.