carpekd Posted March 13, 2008 Share Posted March 13, 2008 I'm started writing php stuff back when php3 was around, and I got out of it for years. Now, I'm getting back into it, and I'm trying to revive an old forum script I wrote. I'm having an unusual problem. It's probably something with newer versions of PHP that I don't know about I want to call up a portion of code with the url: www.site.com/script.php?step=2 my code looks like this: if ($step=="2") { // do this code } however, it doesn't work! what am i doing wrong? Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted March 13, 2008 Share Posted March 13, 2008 you'll probably need to use $_GET['step'] $_GET variables are no longer loaded by default. Quote Link to comment Share on other sites More sharing options...
carpekd Posted March 13, 2008 Author Share Posted March 13, 2008 how exactly would I use that? Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted March 13, 2008 Share Posted March 13, 2008 $step = $_GET['step']; if ($step=="2") { // do this code } 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.