Results 1 to 3 of 3
Thread: Preventing Undefined Error
Nov 21, 2012, 14:02 #1
- Join Date
- Aug 2010
- 1 Post(s)
- 0 Thread(s)
Preventing Undefined Error
In order to prevent getting an Undefined Variable Error, I tend to do this a lot at the top of my scripts...
$sessMemberID = (isset($_SESSION['sessMemberID']) ? $_SESSION['sessMemberID'] : '');
$regEmail = (isset($_SESSION['registrationEmail']) ? $_SESSION['registrationEmail'] : '');
Is there a more sophisticated approach?