0

A web site I've been working on is almost entirely form inputs that links back to itself. I want the user to be able to bookmark the specific settings and have them automatically there when he visits. The problem is this results in a very long URL (almost 500 characters). Is there any way I can shorten the GET URL?

Most of the variables are a simple on/off switch so I don't need to keep track of a lot of detail.

Thomas
  • 871
  • 2
  • 8
  • 21

2 Answers2

0

you can use http://yourls.org - a set of php scripts that enable you to track short urls, like the commercial bit.ly

Ido Sarig
  • 341
  • 3
  • 11
0

You're nowhere near the limit of URL length (around 2000 as of this writing).

However, you should really cookie/session this information or -- if they must be able to easily switch to a different browser/machine -- roll your own URL shortener (just create a unique key that is appended to every request and get the variables associated with that key from a database).

Community
  • 1
  • 1
webbiedave
  • 48,414
  • 8
  • 88
  • 101