Fw: [PHP-DB] PHP redirect?
| From: | Dan Brunner | Date: | Thu, 02 Aug 2001 04:06:47 +0000 |
| Subject: | Fw: [PHP-DB] PHP redirect? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-10987@lists.php.net to get a copy of this message | ||
OPPS!!!! WRONG SENDER HAHAHAHAHA!!!!!
I'm a little absent minded
Hello!!!
Here try this
if ($DATABASE===Custom)
{
$table=Table1;
}
if ($DATABASE===Return_Log)
{
$table=table=3;
$DATABASE=Return_Log;
echo ("<HTML>");
echo ("<HEAD>");
echo ("<TITLE> $us On Linux Using Apache</TITLE>");
echo ("</HEAD>");
echo ("<BODY BGCOLOR=#000000 LINK=#5A72CC VLINK=#5A72CC ALINK=#ff0000$
echo ("<H1<B>Please wait while loading RA
Database</B></H1>\n");
echo ("<meta http-equiv=refresh
content=2;URL=../show.php?DATABASE=$DATABASE&HOSTNAME=$HOSTNAME&table=$table>");
exit();
}
As you can see your using a IF...Statement....
I too have this coming from a form.........This simple code decides which Database is selected along
with the Table....That way I can use the display code and everything else for other
Databases....Plus you can use this with usernames and passwords....SO what if the user can see his
or her password....
why I have exit ();...I don't remember why!?!?!?! AHAHAHAHAHAHHA....it works fine for me....
Also you can pass variables to the sending page....with index.php?WHATEVER=$WHATEVER...on the
redirect....It doesn't take long at all But I like to tell the user where the hell there
going.............
Since the form has passed the Variables over to the next page( or the page after the form)...these
variable will be here to move on to the next page...But you must use them...or they are lost.....
Dan
dan.brunner@duni.com
MYSQL ADMIN
"Webmaster" <webmaster@crosswalkcentral.net> wrote in message news:<20010802035033.10501.qmail@pb1.pair.com>...
> I have a form and based off of this form if my user selects option a then I
> want them to be redirected to another page. If they select option B then I
> want to continue with my php scrips as it does now.
>
> Does any one have any ideas on how I can accomplish this?
>
>
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net