Code:
<?php
$a;
if($a)
{
echo "want to use header to redirect";
}
?>
<html>
<form action="aa.php" method="post">
<input type="submit" value="submit">
</form>
</html>
<?php
if(isset($_POST['submit']) && $_POST['submit'])
{
echo "okkk";