Re: Redirecting and get length problems
| From: | Chris Shiflett | Date: | Wed, 07 Jan 2004 23:15:50 +0000 |
| Subject: | Re: Redirecting and get length problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174018@lists.php.net to get a copy of this message | ||
--- Chris W <1qazse4@cox.net> wrote:
> 3 of the fields in this form are to store various URL's so if they
> are long URL's it is easy to see how I could go over the limit of
> the max url length. So my question is what is the best alternative?
> Is there a way to redirect and use a post instead of a get to send
> the data?
No, thankfully. :-) Imagine how bad it would be if by visiting a Web site,
you could be tricked into posting data to some other Web site.
> The only other Idea I have is to put the information in a temporary
> table and just send a get with the key for the record in the table.
Yes, this is what sessions are, and it sounds like a potentially good
option for you. You can read here for more information:
www.php.net/session
Hope that helps.
Chris
=====
Chris Shiflett - http://shiflett.org/
PHP Security Handbook
Coming mid-2004
HTTP Developer's Handbook
http://httphandbook.org/