pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christian Marschalek <cm@chello.at>
To: [PHP] PostgreSQL <pgsql-php@postgresql.org>
Subject: User reloads inert script...
Date: Thu, 10 May 2001 02:20:14 +0200
Message-ID: <000401c0d8e6$fe3d93e0$0200a8c0@server> (raw)

Hey there:)

What would you do?

Situation: you have a script doing some HTML formular data processing,
some selects and inserts in a transaction and some html output.

When the script is cancled on the client side. By normal PHP will cancel
the script it self (which can be prevented). Now hopefully the
transaction will be rolled back on PostgreSQLs side. Everything fine...

But what If the user reloads the page? Then the whole process will be
done twice... How would you prevent that?

Tia! Chris





view thread (3+ messages)  latest in thread

Message-ID: <000401c0d8e6$fe3d93e0$0200a8c0@server>
Permalink:  ../000401c0d8e6$fe3d93e0$0200a8c0@server/
Also on:    postgresql.org/message-id/000401c0d8e6$fe3d93e0$0200a8c0@server

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: cm@chello.at
  Subject: Re: User reloads inert script...
  In-Reply-To: <000401c0d8e6$fe3d93e0$0200a8c0@server>
  References: <000401c0d8e6$fe3d93e0$0200a8c0@server>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox