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 Link to comment https://forums.phpfreaks.com/topic/69033-solved-cant-print-variable-written-in-the-page-ling/ 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; Link to comment https://forums.phpfreaks.com/topic/69033-solved-cant-print-variable-written-in-the-page-ling/#findComment-347027 Share on other sites More sharing options...
SZero Posted September 12, 2007 Author Share Posted September 12, 2007 it worked ty so much Link to comment https://forums.phpfreaks.com/topic/69033-solved-cant-print-variable-written-in-the-page-ling/#findComment-347030 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.