Are you using view source a lot?  (some of) Mozillas view source
commands send the query again, minus the POST vars.  This could be the
behaviour you're seeing.

I say some of because there are multiple ways of viewing the source -
web developer toolbar's (extension) doesn't seem to suffer from this
problem.  I'm a little cloudy on the specifics, it's a big muddled mess

- Martin Norland, Database / Web Developer, International Outreach x3257
The opinion(s) contained within this email do not necessarily represent
those of St. Jude Children's Research Hospital.

-----Original Message-----
From: Steven [Offstage] [mailto:[EMAIL PROTECTED] 
Sent: Sunday, December 05, 2004 4:42 PM
Subject: [PHP-DB] Mozilla inserts twice, IE does OK... ?

Hi there,

First post to this mailing list, and I have a very strange problem:

I'm using Apache2 with PHP 4.3.9 and MySQL 4.0.21.  Sometimes when I
execute an INSERT-query using mysql_query, the data is inserted twice.
I'm 150% sure the code is only executed once!  I tried this by adding
'echo "test";'  right before and right after my mysql_query command.

The double insert happens only when surfing with Mozilla and Firefox.
In Internet Explorer 6  the data is inserted only once (as should be).

I found some clues pointing in the direction of sessions, but after
commenting  out all other sections of the site and so eliminating all
other code, the problem was still there...

Has anyone any idea in what direction I have to look for a cause or
solution ?

Thanks in advance!

from Antwerp - Belgium

PHP Database Mailing List (
To unsubscribe, visit:

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to