?
Solved

IE6 + Query String + $_GET

Posted on 2005-03-01
7
Medium Priority
?
215 Views
Last Modified: 2008-02-26
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
Comment
Question by:ricbax
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 5

Expert Comment

by:aksteve
ID: 13435709
must be something else. IE6 handles , if I remember correctly, 2048 characters..
0
 
LVL 3

Author Comment

by:ricbax
ID: 13436141
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
 
LVL 5

Expert Comment

by:aksteve
ID: 13436152
hmm have you tried POST to see if that works?
This isn't a shortcut or favorite is it?
0
WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

 
LVL 3

Author Comment

by:ricbax
ID: 13436181
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
 
LVL 5

Accepted Solution

by:
aksteve earned 300 total points
ID: 13436221
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
 
LVL 3

Author Comment

by:ricbax
ID: 13436314
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
 
LVL 5

Expert Comment

by:aksteve
ID: 13438873
GET and POST are just different mechanisms of doing the same thing.

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question