Home › Forums › Back End › undefined index: (problem) › Re: undefined index: (problem)
June 18, 2011 at 9:39 am
#72599
SgtLegend
Member
If the array index “terms” doesn’t exist then this error will occur, what you need to do is the following…
if (isset($_GET) && !empty($_GET)) {
$nospaces = substr($_GET, 0, 4);
} else {
// Show an error message!
}
This will make sure the index exists otherwise it will show an error if you want it to.