essage-
From: Joshua Stein [mailto:[EMAIL PROTECTED]]
Sent: Friday, 7 February 2003 5:29 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] how do I use same page for submit and results?
> But now I'm not using anything that I can check except for the
> button click. Any ideas how to do
> 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.
...
if ($_REQUEST["action"] == "Show List") {
/* form was submitted */
...
} else {
/* form hasn't been submitted, show it */
.
On my choices page, there are only 3 radio buttons and a Submit button.
The page calls itself and runs a query on the database, displaying results. But the
criteria buttons are still at the top of the page above the results. Before, I had a
combo box for certain choices and I just did an "If (!$