View Single Post
  #4 (permalink)  
Old 02-14-2008, 09:58 AM
kgun's Avatar
kgun kgun is offline
WebProWorld 1,000+ Club
 

Join Date: May 2005
Location: Norway
Posts: 5,070
kgun RepRank 3kgun RepRank 3
Default Re: undefine variable

If that is correct, a solution is to:
  1. Connect a default value to $errors.
  2. Try / Catch block to catch the error and take the necessary action.
Assumption about 2 above:
The web server has a PHP version where exception handling is implemented, PHP 5+.

Last edited by kgun : 02-14-2008 at 10:01 AM.
Reply With Quote