Reply to Re: PHP page get executed twice

Your name:

Reply:


Posted by Erwin Moller on 06/01/06 12:52

Marcel wrote:

> I have a problem with a PHP page that seems to get executed twice.
>
> I am running PHP5 ISAPI on 2003 server.
>
> The script is a PHP page with a form. When the form is submitted one
> record have to be inserted in the database but when i look at the database
> after submitting the form there are two(!) records inserted so it looks
> like the script is executed twice.

Hi Marcel,

Sorry to say, but this is most likely a problem in your code, not in the
server/webserver/PHP.

Are you maybe sending the form to the same page that produces the form?
If so, are you sure your checks for a posting and the following DB-inserts
are working as expected?

Maybe add a few echo's before inserting and check if they show up
unexpectedly?

And you can always show us some code (preferable stripped down to the core).

>
> Can this be a proxy-setting or an ISA`server related subject???

I don't think so, but then again, I don't know what an ISAserver is.

>
> Anyone ever experienced similair problems?

Only under Tomcat with Java (which creates a complete copy of the webapp for
purposes still mysterious to me), never with PHP under *nix or ISS.

>
> Marcel

Regards,
Erwin Moller

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация