testing
"Louis Young" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi there
>
> I'm getting the following error regardless of whether register_globals
> is on or off.
>
> *Notice*: Undefined variable: button1 in *C:\Program Files\Apache
> Group\Apache2\htdocs\spar\admin\login.php*
Louis Young wrote:
Hi there
I'm getting the following error regardless of whether register_globals
is on or off.
*Notice*: Undefined variable: button1 in *C:\Program Files\Apache
Group\Apache2\htdocs\spar\admin\login.php* on line *28
You don't need to post the entire page, oy vey that was long!
You can also avoid these errors by prefixing your variables like so:
> if(@$user1==$USER && @$password1==$PASSWORD) {
This has the advantage of skipping the error on this occasion rather than
for all.
dan
"Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL P
In your php.ini, replace your error_reporting line with this one:
error_reporting = E_ALL & ~E_NOTICE
That should get rid of the warnings since pre-defining vars in PHP isn't
really required (as in Java).
Good luck,
~Nicole Amashta
www.aeontrek.com
"Bz" <[EMAIL PROTECTED]> wrote in message