Re: If... Else.. I'm not getting it!
| From: | Jason Wong | Date: | Sat, 25 Jan 2003 10:36:06 +0000 |
| Subject: | Re: If... Else.. I'm not getting it! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-133091@lists.php.net to get a copy of this message | ||
On Saturday 25 January 2003 18:27, Frank Keessen wrote:
> But when i'm using IF Else.. Nothing is happening. I'm only seeing the form
> but when i submit that form: The $vname doen't display..
>
> Here is the code that doesn't work:
>
> <?php
> $vname=$_POST['vname'];
> if($submit) {
Try some basic debugging techniques like echo ($submit). You'll see nothing,
hence that IF clause fails.
If register_globals is not enabled then you need to use $_POST['submit'] (just
as you had to use $_POST['vname']).
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
Confidence is simply that quiet, assured feeling you have before you
fall flat on your face.
-- Dr. L. Binder
*/