Privacy Policy - Visualping: #1 Website change detection, monitoring and alerts
Log In - Visualping: #1 Website change detection, monitoring and alerts
You're missing semi-colons after your javascript lines. Also, should have window.location or .href etc to redirect - See this post for more information..replace
echo '<script type="text/javascript">';
echo 'alert("review your answer");';
echo 'window.location.href = "index.php";';
echo '</script>';
For clarity, try leaving PHP tags for this:
?>
<script type="text/javascript">
alert("review your answer");
window.location.href = "index.php";
</script>
<?php
NOTE: semi colons on seperate lines are optional, but encouraged - however as in the comments below, PHP won't break lines in the first example here but will in the second, so semi-colons are required in the first example.