Hello Everyone! I'm making an PHP form and want to rediect the sumbit.php back to the form page, I want to do this with Javascript all I want to know is does Javascript function inside a PHP file?
Well you can output the javascript code like this: echo "<script>location.href='form.php'</script>"; exit(); // So the other html code won't appear. PHP: Or why not just redirect using PHP? header("Location: form.php"); PHP: