IE6 + Query String + $_GET

I have a script and it is using a rather long query string from a link to pass values to the next php page. I have tested it in most of the common browsers like Firefox, Mozilla, Opera, etc. and they are all able to handle the long string but when I test it in IE 6 the query string gets cut off after the 128th character. I have tried the urlencode() function but that did not help either. Any ideas why IE6 is doing this and how I can get it to work?  
LVL 3
ricbaxAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

aksteveCommented:
must be something else. IE6 handles , if I remember correctly, 2048 characters..
0
ricbaxAuthor Commented:
this is the url in IE6 and where it gets cut off

http://localhost/02music02/02music02%20website/dj_bio.php?id=11dj_img_title=images/vivheading.jpg&dj_img_lg=images/vivbiopic.jpg&bi <---- cut off, should be bio=bio content here
0
aksteveCommented:
hmm have you tried POST to see if that works?
This isn't a shortcut or favorite is it?
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

ricbaxAuthor Commented:
No ... I guess i should have put quotes on it so the link would no become clickable.
OK the values are produced from a mysql and the row values assigned to variables they then sent through the string above and then I used in the following page using the $_GET global variable.

0
aksteveCommented:
If you are exporting that much data from a mysql DB why not just open the page(include_once('page.php');) instead of doing a redirect with a monster get?

To be honest a get should never go over 255 characters.. I would rethink what you are trying to accomplish or at the minimum do a POST instead of GET

Example the way I think it is now:
<?
$var1 = $db->value1;
$var2 = $db->value2;
Header("Location: http://localhost/page.php?var1=$var1&var2=$var2");
exit;
?>

the way it should be:
<?
$var1 = $db->value1;
$var2 = $db->value2;
include_once('page.php');
exit;
?>




0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ricbaxAuthor Commented:
Well I am not sure if what you are suggesting will work in my situation ... but I agree that I shouldn't use a monster GET. But you example doesn't show anything with a POST method and I thought that this was only used when sending form data?
0
aksteveCommented:
GET and POST are just different mechanisms of doing the same thing.

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.