PHP problem with concept
<p>I am creating a form in php. ai have given address of other file in action. LIke I have created A.php, and in action of A.php I have given address of processing file, Like takeinput.php. But now I have issue is I am validating A.php in action file that is takeinput.php. Suppose if name field is null. I have easily validate that. But what happen if error is occured. Will it again be navigated to A.php or I have to use header to navigate back to A.php</p>

<p>takeinput.php</p>

<pre><code>$fname= $_REQUEST["fname"];
if ($fname==''){
$error='Field can't be empty.' exit();

}
</code></pre>

<p>Now i need to use header to locate back to A.php or it will automatically be navigated on error.
I am newbie help me with concept.</p>
