PDA

View Full Version : redirection after inserting


Bengal313
12-01-2002, 12:47 PM
Can anyone tell me how I can do the following.

I have a form "add_user.php" thats adds user mailing info to a mysql datase called "phpbook", table "clients", Everything works fine execept after inserting the record i want the page to redirect to a page called "order.php" with the parmeters "email" passed thru the url. Can anyone show me how to write this code?

ConfusedOfLife
12-01-2002, 06:42 PM
Well, one way is to use the header function ( is it a function?!), like:


<?PHP
header("Location:order.php");
?>
<html>
<head>
.
.
.


Notice that you should use the header function before the header is sent to the page ( i.e. using that on top of your document, just b4 <html>, <head> and anything else that sends the header), and I don't know how to send the email through the url by php, sorry!