.Post in jquery
<p>im using the below code in jquery, but my page itself reloading, i dont know where i have made a mistake.</p>

<pre><code>var newstr = $.trim($('#umail').val());
</code></pre>

<p>newstr holds the email address</p>

<pre><code>$.post("coding/unsub.php",{email:newstr},function(result){
$("#d_result").html(result);
});
</code></pre>

<p>i have</p>

<pre><code>&lt;span id="d_result"&gt;&lt;/span&gt;
</code></pre>

<p>to show the result</p>

<p>my php code is</p>

<pre><code>&lt;?php
include ("../includes/dbcon_.php");
$unsub_sql = mysql_query("Delete FROM TblNewsLetter WHERE Email = '$_GET[email]'");
if (!$unsub_sql)
{
    $ds_result = "&lt;p style='font-size:200%;color:red;'&gt;Some Error Occurred! Try Later.&lt;/p&gt;";
}
else
{
    $ds_result = "&lt;p style='font-size:200%;color:green;'&gt;Successfully Unsubscribed&lt;/p&gt;";
}
mysql_close($con);
echo $ds_result;
?&gt;
</code></pre>
