Passing selected POST data with header redirect
<p>Ok so, background: I have a form, the user inputs their data, i preview it to them, they check it, approve it and then i have a script which inserts it into the database pending approval.</p>

<p>The issue i wanted/want to get away from is, on the page displayed when the insert has been successful, if the visitor hit Refresh, the data would repost to the database, generating a new unique id. I discovered i can use </p>

<pre><code>if($result){
header("Location: whateverpage.php");
</code></pre>

<p>To redirect them if there insertion is successful and get away from the refresh problem, however...</p>

<p>the next stage in my process was/is, i have them clicking a button to proceed to PayPal and pay, which when/if successful, returns their unique id generated on the original database insert script, through PayPal's IPN, and adds a 'true/false' int to the database so their record can be displayed.</p>

<p>So, what i want to know is, can i pass their unique id which i get from this on my insert page:</p>

<pre><code>$bus_id=mysql_insert_id();
</code></pre>

<p>In the header redirect, so i can then post this information to PayPal to keep track of their order?</p>

<p>I hope that all makes sense!</p>

<p>Thanks
Dan</p>
