Re: Can any body help? Thanks.
| From: | Jason Wong | Date: | Sat, 24 Aug 2002 19:40:29 +0000 |
| Subject: | Re: Can any body help? Thanks. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-113970@lists.php.net to get a copy of this message | ||
On Saturday 24 August 2002 20:53, Juan Pablo Aqueveque wrote:
> Try this:
> if ($_POST["submit"] == "click")
$submit will only be set when you submit the form, hence $submit will not be
defined the first time the page is displayed.
So you should do something like:
if ($_POST && ($_POST['submit'] == 'click')) {
do_something();
}
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
"Sometimes insanity is the only alternative"
-- button at a Science Fiction convention.
*/