<form method="post" action="#">
name <input type="text" name="na" />
Male <input type="radio" name="r" value="Male" />
Female <input type="radio" name="r" value="FeMale" />
<input type="submit" name="sbt" onclick="return confirm('are sure');" />
</form>
</body>
</html>
<?php
$a ="";
if(isset($_POST['sbt']))
{
echo $a=
}
?>
I want to get value true or false from ONCLICK function in $a variable of PHP.