prevent direct access to form confirmation page in php
<p>I am new in PHP.</p>

<p>I searched every where, but don't find solution for my problem. So I post it here.</p>

<p>I created a form page (order.php) that post their data to another thank page (thanks.php).</p>

<p>thanks.php submit information that entered in previous form to database and redirect to paypal.</p>

<p>I want to prevent direct access to thanks.php, so it is accessed only if user submit form.</p>

<p>Thanks</p>
