接收表单信息后,将查看器发送/重定向到URL

I am using a form tied to JS and PHP to capture form info and send it an email address...but I also want to send viewer upon clicking "submit" to be sent to a specific URL... New to JS and PHP. Thank you in advance for any assistance.

After sending the email in PHP:

header('location:http://example.com');

also you can use refresh meta tag after sending data:

 echo '<META HTTP-EQUIV=Refresh CONTENT="0; URL='www.example.com'">';

In Javascript:

window.location = '/some/page.php';

If you're submitting the form via Javascript. If you're letting the form's action run first, then use the PHP header function:

header('Location: /some/page.php');