accessing php file from a folder (using 'action' in a PHP form)
<p>In php, I have a form where user can view comments by clicking on a button</p>

<pre><code>echo "&lt;td&gt; &lt;form action=\"viewComments.php?id=$pid\" method=\"post\"&gt;";
</code></pre>

<p>This works fine when I put viewComments.php in the same folder. I want to organise my code and put viewComments.php in a folder lets say "actions". How do I do this? In other words, if I want to access "viewComments.php" that is in a folder called 'actions' how to reflect that in here?</p>

<pre><code>echo "&lt;td&gt; &lt;form action=\"actions/viewComments.php?id=$pid\" method=\"post\"&gt;";
</code></pre>

<p>Can somebody help?</p>

<p>I have<br>
blog_created/thisScript.php - Here I have my code and 
my viewComments.php is in blog_created/actions/viewComments.php... It's not working.... It is saying - The requested URL /~user/blog_created/viewComments.php was not found on this server</p>
