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
[EMAIL PROTECTED]




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

Reply via email to