Re: how do I use same page for submit and results?

From: Date: Thu, 06 Feb 2003 18:29:18 +0000
Subject: Re: how do I use same page for submit and results?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-25495@lists.php.net to get a copy of this message
> But now I'm not using anything that I can check except for the > button click. Any ideas how to do this? assign a name to the button and check for that. <input type="submit" name="action" value="Show List"> ... if ($_REQUEST["action"] == "Show List") { /* form was submitted */ ... } else { /* form hasn't been submitted, show it */ ... } -j.

« previous php.db (#25495) next »