Page 1 of 1

(OT?) Timing problems with PHP and IE

Posted: Wed Apr 07, 2004 3:31 am
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

Posted: Wed Apr 07, 2004 6:31 am
by John Cartwright
show us some code ... maybe its your script.. some browsers are more picky with things than others

Posted: Wed Apr 07, 2004 7:10 am
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

Posted: Wed Apr 07, 2004 8:03 am
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.

Posted: Wed Apr 07, 2004 10:10 am
by tomx
What server variables do you mean exactly? the $_SERVER or the environment variables? (or are they the same anyway?)

Kind regards,
Thomas

Posted: Wed Apr 07, 2004 10:29 am
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.

Posted: Wed Apr 07, 2004 10:43 am
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

Posted: Wed Apr 07, 2004 10:52 am
by d3ad1ysp0rk
if ($POST_["field"]!="") {
Is that from your code?
If so, change it to

Code: Select all

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

Posted: Wed Apr 07, 2004 11:44 am
by tomx
Sorry, was just a typing mistake. Of course it is $_POST in the code