Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
11-11-2006, 09:06 PM #1
- Join Date
- Nov 2006
- Thanked 0 Times in 0 Posts
write to database and go to url problem
I have a php script which will write data entered from a form into a database table.
However, what I want the script to do is to write the data and then goto a new webpage.
Does anyone know the code to finish the script and allow the new page to be loaded into the browser?
11-11-2006, 09:31 PM #2
make sure theres no output at all on the page otherwise you will get "header already sent" errorsPHP Code:
// do database stuff
// this will send the user to example.com
output includes whitespace before or after the <?php and ?>