...I'm really getting sick of this.

He has: 52 posts

Joined: Apr 2006

Code:

<?php
$passy
= $_GET[\"p\"];

if (
$passy == \"blindoff\" ) {
echo
$admin;
}
?>

Error:
Notice: Undefined index: p in (dir)/admin.php on line 28'

($admin is defined earlier)

That is simple, is it not? Why doesn't it work?! It worked fine beofre I upgraded PHP!

Busy's picture

He has: 6,151 posts

Joined: May 2001

It's not an error, it's a notice, one less than a warning.

You have error reporting to all set

If you want to keep error reporting to all, you will need to do something like this:
$_GET['p'] = isset($_GET['p']) ? $_GET['p'] : '';
to get rid of the notice

You can change the error reporting in your php.ini file which is in your windows folder, has comments on the section to what to change to.

He has: 52 posts

Joined: Apr 2006

Oh. Well, notices are ugly. I'm going to go disable them.

Thanks.

Again.

And "Modrator" is spelld rong.

Busy's picture

He has: 6,151 posts

Joined: May 2001

no it spelld write

They have: 64 posts

Joined: Apr 2006

Which mods do you rate? (excuse my ignorance)

DaveyBoy's picture

They have: 453 posts

Joined: Feb 2003

It's the admins way of being funny cos Busy can't spell Laughing out loud

They have: 64 posts

Joined: Apr 2006

DaveyBoy wrote: It's the admins way of being funny cos Busy can't spell Laughing out loud

I see, Busy seems to be a man after my own heart I have trubble with the old spolling as wel Wink

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

Yarrr, whereas all the adminz spellin is prefect innit.

He has: 52 posts

Joined: Apr 2006

ya damnstr aight omnfgloal roflmao Smiling Roll eyes Laugh Laughing out loud Sticking out tongue

demonhale's picture

He has: 3,278 posts

Joined: May 2005

and I cant spell that good either... uhm.... sometimes... tee hee!

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.