Re: Redirect via GET is loosing characters

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

 



Merlin schrieb:
Hi there,

I am checking plausability inside a php script that receives a POST submit. If an error occures the user should be redirected back, along with his original data filled into the forms.

There is a problem with this. As the GET method, which the redirect is using, only allows a certain amount of characters, the text is always cut down.

I use this:
HEADER("Location:".$data[rurl]."?error=".$error.$parameter);

Is there a way to redirect the user to the form and fill in large text?

Thank you for your help,

Best regards, Merlin


This is a normal behaviour. Webservers trim the GET-request at a certain length.

You have several options:
- don't do a redirect but return the form, with most clean frameworks it should be no problem to include the action wich generates the form - save the variables in a session, then send the redirect-header and clean the session after regenerating the form - save the variables in a cookie stored at the client and clean the cookie afterwards (ugly)


Greetings,

--
Thomas 'Neo' Weber

Webmaster
GothNet.eu | Gothic-Chat.de

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