sstangle73 Posted January 29, 2008 Share Posted January 29, 2008 how to fix: Notice: Undefined index: page in /homepages/27/d193007783/htdocs/stangle/airborne/index.php on line 33 this showes up several times once i turn error_reporting(E_ALL); this line mentioned is if($_GET['page']=="COD4"){ Quote Link to comment https://forums.phpfreaks.com/topic/88309-solved-notice-undefined-index/ Share on other sites More sharing options...
valtido Posted January 29, 2008 Share Posted January 29, 2008 it looks like on that particular directory there isnt a index page so go to /homepages/27/d193007783/htdocs/stangle/airborne/index.php and maybe try to use $_request instead of $_get lool Quote Link to comment https://forums.phpfreaks.com/topic/88309-solved-notice-undefined-index/#findComment-451898 Share on other sites More sharing options...
sstangle73 Posted January 29, 2008 Author Share Posted January 29, 2008 request changed it to undefined var. yes there is an index were in the index. Quote Link to comment https://forums.phpfreaks.com/topic/88309-solved-notice-undefined-index/#findComment-451900 Share on other sites More sharing options...
valtido Posted January 29, 2008 Share Posted January 29, 2008 try and see this loool http://www.thescripts.com/forum/thread135.html hope it helps Quote Link to comment https://forums.phpfreaks.com/topic/88309-solved-notice-undefined-index/#findComment-451904 Share on other sites More sharing options...
teng84 Posted January 29, 2008 Share Posted January 29, 2008 first try if the var is set if (isset($_GET['page'])){ if($_GET['page']=="COD4"){ //etc... } } Quote Link to comment https://forums.phpfreaks.com/topic/88309-solved-notice-undefined-index/#findComment-451906 Share on other sites More sharing options...
sstangle73 Posted January 29, 2008 Author Share Posted January 29, 2008 im not using a form im using just ?ID=XXX in my urls so nope not really i already read that b4 i posted Quote Link to comment https://forums.phpfreaks.com/topic/88309-solved-notice-undefined-index/#findComment-451907 Share on other sites More sharing options...
valtido Posted January 29, 2008 Share Posted January 29, 2008 right ermm this might be because sometimes ppl forget to end the previous line go to line 30 and see if you have a ; at the end or somin lool it happns to me all the time like that Quote Link to comment https://forums.phpfreaks.com/topic/88309-solved-notice-undefined-index/#findComment-451909 Share on other sites More sharing options...
sstangle73 Posted January 29, 2008 Author Share Posted January 29, 2008 thats it teng thanks Quote Link to comment https://forums.phpfreaks.com/topic/88309-solved-notice-undefined-index/#findComment-451911 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.