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? Link to comment https://forums.phpfreaks.com/topic/96052-need-help-old-noob/ 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. Link to comment https://forums.phpfreaks.com/topic/96052-need-help-old-noob/#findComment-491724 Share on other sites More sharing options...
carpekd Posted March 13, 2008 Author Share Posted March 13, 2008 how exactly would I use that? Link to comment https://forums.phpfreaks.com/topic/96052-need-help-old-noob/#findComment-491728 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 } Link to comment https://forums.phpfreaks.com/topic/96052-need-help-old-noob/#findComment-491732 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.