Avoid to to send data when page reload and when the form action is with same page
<p>i want to send a data from my page called is index.php, the action is with same page, so i can get <code>$_POST['submitted']</code> in index.php, when i submit data is save succesfully to my database, but when i reload the page data still save to my database. my question is how do i avoid send data when i reload it but the action is with the same page (<code>&lt;?php echo $_SERVER['PHP_SELF'];?&gt;</code>)..?</p>

<p>Thanks..</p>

<pre><code>//page index.php
&lt;form method="post" action="&lt;?php echo $_SERVER['PHP_SELF'];?&gt;"&gt;
    &lt;input type="hidden" name="submitted" value="1" /&gt;
    &lt;input type="text" name="email_address"/&gt;
    &lt;input type="submit" value="submit"/&gt;
&lt;/form&gt;

//still in index.php
if(isset($_POST['submitted']) &amp;&amp; $_POST['submitted']==1)
{
    //send data
}
</code></pre>
