Ezilon.com - Target Your Audience, be Seen in Your Region

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

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

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!

Webmaster! Smiling

Busy's picture
Modrater

He has: 6,148 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.

<?bhb if(broken){ echo("It wasn't me Smiling "); } ?>
Learn HTML the ez way - EzHTML.net

Some people are like slinkies, they dont really serve any purpose but they still bring a smile to your face when you push them down the stairs ...

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.

Webmaster! Smiling

Busy's picture
Modrater

He has: 6,148 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
Developer

They have: 453 posts

Joined: Feb 2003

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
Moderator

He has: 3,489 posts

Joined: Jun 2002

Yarrr, whereas all the adminz spellin is prefect innit.

a Padded Cell our articles site!

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,195 posts

Joined: May 2005

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