Page 1 of 1

what are the code to link to another page?

Posted: Mon Jul 03, 2006 8:36 am
by joseph
I have this feedback form, and I want this to direct to another page after the form is sent. What codes will I use? I forgot how to use the window.something variables..

Posted: Mon Jul 03, 2006 8:55 am
by andym01480
If it's to process the form

Code: Select all

<form action="processpage.php" method=post>
is the html tag at the start of the form.

If its after the form has been processed and no output has been sent to the browser then use

Code: Select all

<?php
header("Location: http://www.example.com/"); /* Redirect browser */

/* Make sure that code below does not get executed when we redirect. */
exit;
?>