Re: General use of rewrite / redirect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Mar 18, 2008, at 10:11 AM, Per Jessen wrote:

Per Jessen wrote:

My typical setup for a form-page probably looks like this:

if ( $_POST )
{
       // do POST processing
       header(303 thankyou.html).
       exit
}

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.


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 :)



/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@xxxxxxxxxx




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux