POST on redirects?

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

 



In a couple of my scripts, I do something like the following when I detect
an improperly submitted form:

**    if( !valid_string( $_POST['firstname'] ) )
   {
     $return_url =
"https://www.abc.com/checkout_phase1.php?error=FirstName Required";
     header( "location: $return_url" );
     exit(0);
   }

Recently I changed the code so that a big variable that was being passed via
GET (IE, as a param in the URL) is instead being POST'd... (typically, via a
hidden INPUT elem in a form)...

Unfortunatley, this broke my error handling logic... Is it possible to add
POST variables to a redirect? How?

--
Free Linux Technical Articles
http://www.linuxtecharticles.com

[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