PHP and redirects

Associate
Joined
13 Nov 2003
Posts
1,567
Location
Manchester
Hi All

I am building a very simple shopping cart

I have a page (new_customer.php) that is used for adding new users, it validates the form contents, checks the user doesnt already exists, and if not it adds them to the database and stores their details in a session for use at the checkout stage.

The issue that I have is how to get from this page to the next in the checkout proccess.

The form on the page posts to the same page - new_customer.php

I can do a javascript redirect, but that is less than ideal

Any suggestions? thanks
 
Code:
header('Location: http://www.yoursite.com/next_page.php');
make sure it's the only thing you output to the browser, not even whitespace.
 
Back
Top Bottom