I need some help preventing my email form from being rebmitted (generating an email) when the page is reloaded.

Hopefully this can be fixed (and someone can help me do it). Over the past 1.5 weeks I've been working on a shopping cart for my site and a dozen other smaller things so I'm pretty burnt out.

Today I decided to write a small form to email submission page cobbled together from a few bits I found on the net and some of the forms and validation I'd put together for the cart.

The forms is created by the same page it is submitted to. A few conditionals check to see what's going on when the page loads to decide where to go within it (whether it should validate and complain about invalid input or whether to actually do a real submit action and create an email message).

When the thing completes successfully it sends the browser to a brand new page using the "header" function.

Reloading that page says (of course) that post data needs to be resubmitted - and generates a duplicate email.

What's a fairly straight forward way to prevent this? I can send up the source for my PHP page.
_________________________
Bruno
Twisted Melon : Fine Mac OS Software