Re: if statment
| From: | Chris Shiflett | Date: | Mon, 31 Mar 2003 20:53:20 +0000 |
| Subject: | Re: if statment | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-141738@lists.php.net to get a copy of this message | ||
--- Tim Haskins <tim@copiousdg.com> wrote:
> Now when I change the == to <> I receive the following error:
>
> Notice: Undefined index: id in c:\inetpub\wwwroot\_\users.php on line 103
>
> Why would that not work - In asp it does, but I can't get it workin in php.
Are you kidding? You do realize that ASP and PHP are not the same thing, right?
> If that doesn't make sense, I would like to have an if statement the says,
> if HTTP_GET_VARS["id"] is NOT empty then show something else
if (!empty($_GET['id']))
{
echo 'Something else';
}
Chris
=====
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/