Conditional Redirection
<pre><code>&lt;a href="/delete/&lt;?php echo $prod_name; ?&gt;" onClick="dropItem()"&gt;delete&lt;/a&gt;
</code></pre>

<p>Now is it true that only if the function dropItem return true will the page be redirected to the url given in the href attribute?
 <strong>If not then can anyone suggest any method to implement this kind of  thing. i.e only when the java script returns true the page redirection happens.</strong></p>
