Forum Moderators: coopster
header("location:page.php?ID=".$ID);
but it works fine in another script (a login script) that I have created.
The only thing the script does is insert data into a database (which works) and it should redirect the user back to a listing of the contents of the database.
The version that works uses an IF statement to verify the login against data in the database then redirects depending on the result.
Is there a reason that a redirect wouldn't work at the end of a script? Should I create an IF statement or something? I'm getting confused here.
The script doesn't output anything, all it does is take data from a form, add it to my database and redirect the user back to the correct page.
I tried "Location" verses "location" and neither one is working.
Ok, I found the problem. I had an include that was outputing some Javascript and with that gone it works fine.
Thanks for the help!