RE: [PHP] Form Question
| From: | Jack Dempsey | Date: | Sun, 21 Oct 2001 23:27:35 +0000 |
| Subject: | RE: [PHP] Form Question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-71767@lists.php.net to get a copy of this message | ||
ok, several different solutions, best being:
1. use sessions. this is probably the simplest, most robust way of doing it,
after you've become familiar with sessions.
2. as someone mentioned before, use one page that posts to itself. this
would be easier than using sessions, but not as powerful.
jack
-----Original Message-----
From: Christopher William Wesley [mailto:cwwesley@udlug.org]
Sent: Sunday, October 21, 2001 6:46 PM
To: php-general@lists.php.net
Cc: Chip Landwehr
Subject: Re: [PHP] Form Question
On Sun, 21 Oct 2001, Chip Landwehr wrote:
> if ($T3==""){header ("Location: new_narrative.php?FilledName=No");}
>
> How do I change this to include a Post?
You can put it back on as a query string (kinda dirty, but you can't POST
it back).
<?php
$myQueryString = "FilledName=No";
while( list( $key, $val ) = each( $HTTP_POST_VARS ) ){
$myQueryString .= "&" . $key . "=" . $val;
}
if( $T3 == "" ){
header( "Location: new_narrative.php?" . $myQueryString );
}
?>
~Chris /"\
\ / September 11, 2001
X We Are All New Yorkers
/ \ rm -rf /bin/laden
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net