Can't make "Reload" script inside PHP work
<p>This is what runs after submitting a form:</p>

<pre><code>else
{
    echo '&lt;br/&gt; Tu chisme se agregó con éxito.';
    echo '&lt;script type="text/javascript"&gt;window.location.reload(true);&lt;/script&gt;';
}
</code></pre>

<p>Basically after the users submits the form it does a couple of things and finally displays a text saying that the post has been submitted successfully and then a second echo tries to reload the page. However I wasn't able to make it work. It displays the text but it doesn't reload the page. What's the problem with the code? Please ask for any info. Thanks</p>
