PHP redirect browser?

gballz

New member
I have a self submitting form and when the information is sent to the database I want the browser to redirect. But from what I understand, because there is a form on the page
header('Location: ');
wont work. Is there any other way to redirect to say /index.php after the form is submitted?
To make it more interesting, Im trying to avoid using JavaScript.
Its self submitting because it is a create account page and I want to echo back the information entered if there was an error.
So if you type username as bob, but bob is already taken, it will tell you its taken but still keep bob in the form field.
 
Back
Top