if(isset($_POST['Submit'])){} Not working
<p>I am trying to figure out the problem in this code but no luck. When I click on the form submission it doesn't generate any alert even its not echo anything. Please have a look on the code and let me know if there is anything I am missing` </p>

<pre><code>&lt;form action="" method="post"&gt;
    &lt;textarea rows="6" cols="70" name="notes" placeholder="Enter Notes"&gt;&lt;/textarea&gt;&lt;br&gt;

    &lt;input type="submit" name="submit1" id="submit1" class="upload-button" style="margin-left:40%" value="Post" /&gt;
&lt;/form&gt;


&lt;?php
if(isset($_POST['submit1'])) {
echo '&lt;script type="text/javascript"&gt;';
echo 'alert("This is alert");';
echo '&lt;/script&gt;';
echo 'ewuifbhfiueruigriug';
}`
?&gt;
</code></pre>