Re: General use of rewrite / redirect
| From: | Jason Pruim | Date: | Tue, 18 Mar 2008 14:49:58 +0000 |
| Subject: | Re: General use of rewrite / redirect | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-271731@lists.php.net to get a copy of this message | ||
On Mar 18, 2008, at 10:11 AM, Per Jessen wrote:
Per Jessen wrote:Just to play devils advocate and to try and understand things better... Is there any reason you couldn't do a simple: $formsubmitted= true; if($formsubmitted = true){ Thank you for giving the bad guys your credit card number hahahahahah! }else{ echo <<<HTML <P>Give me your credit card number or I'll force you to eat raw spam all day!</P><input type="text" name="txtCC" } Or something like that :)My typical setup for a form-page probably looks like this: if ( $_POST ) {If I wanted the user back on the same form page, but still with a "thank you" message, I'd still do a 303, but use $_SESSION to indicate that the user needs a "thank you" message displayed.// do POST processing header(303 thankyou.html). exit}
/Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php-- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424-9337 www.raoset.com japruim@raoset.com