23, 2002 10:06 AM
To: Crane, Christopher
Subject: Re: [PHP] Page Refresh
Importance: High
i don't undertand why you have the meta refresh in there, but the porblem
you have is simular to any one who clicks refresh on their browser...
essentialy, what you want to do is after the DB insert,
You could use a SESSION variable called for instance 'SUBMIT_TO_DB'.
After submitting to the database, you simply set this variable 'SUBMIT_TO_DB' to
'NO'...
The next time the page is reloaded, you won't have to submit one more time to the
database, provided you check whether 'SUBMIT_TO_DB' is
2 matches
Mail list logo