I'm looking for a simple solution to reduce the length of my GET input code (on my website).
The forms are handled in JavaScript and, using a function, made simpler for URL sharing. For example: multiple form inputs, with different names, are converted into a simple settings=1,0,0,1
and placed in the URL as GET - this data is then exploded/imploded in PHP to use/re-use the input.
But, given the size of the form, it can still get pretty bloated. I'd like to compress that same data in the JavaScript and then decompress it in the PHP, allowing considerably shorter URLs for sharing.
Think TinyUrl. I did some googling, but solutions were more complex than I'd like - this isn't an attempt to hide data, but simply make it shorter.
Update: A better example of what I want is to to convert a long GET input like: settings=1,1,1,1,1,1,1,1,1,1,1,1,1
into settings=s8djh
.