SZero Posted September 12, 2007 Share Posted September 12, 2007 hi every1.. i posted a topic lately on how to disable debugging cause of the NOTICE message.. anyway i asked this cause when i was trying to print a variable sent in the link it shows this message and doesn't prin it.. to make it more simple, there's a page called Index.php with this code in it: <? print "$extra"; ?> i call the page like this: www.MyDomain.com/index.php?extra=Hii or www.MyDomain.com/?extra=Hii before an error appeared (NOTICE: Undefined Variable extra....) and it didn't print, now i disabled debugging, no errors show but still doesn't print.. any help plz.. ty Quote Link to comment Share on other sites More sharing options...
Jessica Posted September 12, 2007 Share Posted September 12, 2007 Because it's not set. You need: $extra = $_GET['extra']; Also, don't put quotes around a variable, you're making PHP work harder. print $extra; Quote Link to comment Share on other sites More sharing options...
SZero Posted September 12, 2007 Author Share Posted September 12, 2007 it worked ty so much 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.