Automatically refresh page
| From: | Kevin Meredith | Date: | Mon, 15 Apr 2002 13:05:30 +0000 |
| Subject: | Automatically refresh page | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-93140@lists.php.net to get a copy of this message | ||
Hi.
How can I reprocess a page if a certain variable is received.
I am selecting companies for specific users from which they can select the
required company and proceed further. Using variables on the same page
using PHP_SELF. This then shows a list of contacts for the chosen company.
In some cases the user only has access to one company. I would like to have
the page skip the company choosing section and proceed straight to the list.
I had thought to do a count on the rows returned from the database and if
that was == 1 then assign the relative variable and refresh the page. Is
there perhaps an easier or better way to achieve the same results?
Thanks
Kevin