PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 29th, 2003, 10:23 AM
Firestorm Firestorm is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Yorkshire, UK
Posts: 11 Firestorm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Arrow PHP forms fail in IE6

I moved my PHP scripts from a Solaris server to a Windows NT server recently at work. But forms no longer work fully in IE6. After much testing I get these results:

Using <textarea> in a form, only 235 characters can be passed successfuly. After that, the browser hangs, trying to load the next page. (The loading bar moves very slowly at the bottom but nothing happens.)

Using <input> in a form I can get 326 characters through, sometimes slightly more.

Changing the form from POST to GET allows 1708 characters!

Does anyone know anything about this problem? In Mozilla, Opera, whatever, the forms are processed instantly. But always IE6 sticks - yet the forms worked on the old server.

I am using a recent PHP version with register_globals OFF and the standard settings for the GET buffer size etc.

I have tried emptying the browser cache, deleting cookies etc, even moving the cache to another drive.

Is there a tweak I need to make on the server, or in the php.ini file? Otherwise it means all forms on our site are no use!

Reply With Quote
  #2  
Old October 29th, 2003, 02:23 PM
Phynias Phynias is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 18 Phynias User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I've seen this as well and it drove me nuts.
I never found out why it was doing it nor did I find a solution.
If you find anhything please post it here.

Reply With Quote
  #3  
Old October 29th, 2003, 02:32 PM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
Being a Linux user, I've never personally run across this behavior, but I have seen a problem with the enc-type in some versions of PHP. That is, if you've got an enc-type of "multipart/form-data," POST vars get lost. I believe this bug popped up in response to a tightening of security around file upload management.

I don't think this fits your problem precisely, but maybe it'll spark a relevant thought for somebody.

Does the behavior exhibit itself only in IE6? I know that in early versions of IE6, there were other problems like meta refreshes not working properly. Maybe an upgrade is in order. (A long shot, I know.)

Reply With Quote
  #4  
Old October 29th, 2003, 02:41 PM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
Just for kicks, why not try turning register_globals on and see what happens. If it works, you might take another look at how you're referring to your variables (using $_POST in lieu of $HTTP_POST_VARS if you're not already, for example). Are you doing anything fancy with sessions or cookies or headers?

To clarify my earlier question about IE6, does it work in IE5.5, for example, or for more recent (or older) releases of 6?

Are there particular character sequences it hangs on? For example, could it be a matter of the program choking on single or double quotes? Just tossing out ideas here.

Reply With Quote
  #5  
Old October 29th, 2003, 03:13 PM
Phynias Phynias is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 18 Phynias User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
isnt really a php problem.
I mean after all you are just making a form and passing the information on to the next page.
the form loads fine
you enter in info then click submit and here is where it hangs.
doesn't even get to the next page. just hangs.

Reply With Quote
  #6  
Old October 30th, 2003, 04:15 AM
Firestorm Firestorm is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Yorkshire, UK
Posts: 11 Firestorm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I'm using IE6 SP1 on Windows XP. The server is Windows NT running PHP 4.3.3 on IIS 5.0. Any more details that might help, just ask. I've checked every setting but cannot see a problem.

Yes, the problem only affects IE6. But only on this server/PHP setup. Before I was on a Solaris server where PHP had the register_globals ON and it worked OK.

Here's the code I'm using to test at the moment. If it's not a PHP problem, sorry for posting here.

Code:
<html>
<body>
<form enctype="multipart/form-data" action="form2.php" method="get">
Message:
<br /><input name="answer" />
<br /><br /><input type="submit" value="Submit" /> <input type="reset" name="resetbutton" value=" Clear " />
</form>
</body>
</html>


Then in the second file:

Code:
<html>
<body>
PHP Code:
<?php $answer $_GET['answer']; echo strlen($answer); echo "<p>$answer</p>"; ?>
</body> </html>

Reply With Quote
  #7  
Old October 30th, 2003, 06:41 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
Indulge me and get rid of the enctype parameter in the form tag. I know there have been problems with that in the past. I'd think it would affect all browsers (being a server side problem). If that doesn't fix the problem, try it with register_globals on as you had it on the old server.

Reply With Quote
  #8  
Old October 30th, 2003, 09:52 AM
Firestorm Firestorm is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Yorkshire, UK
Posts: 11 Firestorm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Now I can get 314 characters through before it sticks (using POST).

I am trying some tweaks on the PHP config file. If they don't work, I will try turning register_globals on as you suggest.

Reply With Quote
  #9  
Old November 24th, 2003, 06:23 AM
Firestorm Firestorm is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Yorkshire, UK
Posts: 11 Firestorm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Tried it with register_globals On. No difference. Must be a Windows server bug or something.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > PHP forms fail in IE6


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT