(OT?) Timing problems with PHP and IE

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tomx
Forum Newbie
Posts: 5
Joined: Wed Apr 07, 2004 3:31 am

(OT?) Timing problems with PHP and IE

Post by tomx »

Hi,

I don't know if this is Offtopic but I'm facing strange things here which probably are no PHP problems.

I'm sending data from an HTML form to a PHP script. There I process the POST data and do a SELECT query to an Oracle Database and build a table showing the result - nothing special.

But sometimes it happens that the POST data does not arrive or something else happens so that I don't get any table. When I hit reload 1 or 2 times (F5) the table will be displayed. Also when I hit 'back' and send the form again after 1 or 2 times everything works fine. This happens only in IE6.0. I couldn't reproduce it with Mozilla so far.

I also think this started to happen after the page is running on https. But this can't really be the problem, can it?

I'd be happy about every hint from you guys.

Thanks a lot.

Regards,
Thomas
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

show us some code ... maybe its your script.. some browsers are more picky with things than others
tomx
Forum Newbie
Posts: 5
Joined: Wed Apr 07, 2004 3:31 am

Post by tomx »

Mainly it's

HTML:

<form action="submit.php" method="post">
<input type="text" name="field">
<input type="submit" value="submit">

PHP:

if ($POST_["field"]!="") {

// do SELECT ...WHERE column='".$_POST["field"]."'

}

Well, that's it. Nothing that should be much of a problem I guess.

Thanks,

Thomas
TheBentinel.com
Forum Contributor
Posts: 282
Joined: Wed Mar 10, 2004 1:52 pm
Location: Columbus, Ohio

Post by TheBentinel.com »

It might be revealing to display all the SERVER variables and POST/GET variables so when it decides not to display the table, you'd see what led it to the decision.
tomx
Forum Newbie
Posts: 5
Joined: Wed Apr 07, 2004 3:31 am

Post by tomx »

What server variables do you mean exactly? the $_SERVER or the environment variables? (or are they the same anyway?)

Kind regards,
Thomas
TheBentinel.com
Forum Contributor
Posts: 282
Joined: Wed Mar 10, 2004 1:52 pm
Location: Columbus, Ohio

Post by TheBentinel.com »

I was referring to $_SERVER, but anything you can find to print that describes your environment, the user, the request, anythng at all could help.
tomx
Forum Newbie
Posts: 5
Joined: Wed Apr 07, 2004 3:31 am

Post by tomx »

I was also thinking about a timing problem and trying to force 1-2 seconds of delay into it. But why would it happen on IE and not on Mozilla?

Thomas
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

if ($POST_["field"]!="") {
Is that from your code?
If so, change it to

Code: Select all

if ($_POST["field"]!="") {
tomx
Forum Newbie
Posts: 5
Joined: Wed Apr 07, 2004 3:31 am

Post by tomx »

Sorry, was just a typing mistake. Of course it is $_POST in the code
Post Reply