Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- Trouble understanding a variable error


dreamcatcher - 11:05 pm on Jul 27, 2007 (gmt 0)


Hi horseatingweeds,

You are trying to access a variable before its set. Look into isset [uk2.php.net] and change this line:

<?php echo $error;?>

to this:

<?php echo (isset($error)? $error : '');?>

Basically you are echoing the value to the page before the variable exists. Hope that makes sense.

dc


Thread source:: http://www.webmasterworld.com/php/3406783.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com