Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 220
  • Last Modified:

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?  
0
ricbax
Asked:
ricbax
  • 4
  • 3
1 Solution
 
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now