I want when a user enter 'me' from the prompt text box it will be direct to config.php else print "you don't have access". Below is the code i have so far but is not calling the prompt. Need help on how on overcome the issue. thanks in advance.
<?php
if(isset($insert)){
echo "<script>";
echo $ms="prompt('Please enter your name', 'Enter name here');";
if($ms=="me"){ header("Location: config.php");
} else {
echo "you dont have access"; }
echo "</script>"; }
?>