posted
okay, I had to create a form for a website that took the data and inserted it into a database and that also sent an email to a recipient with the data from the form, and then redirects to another html page.
i submit the form data to a php page which handles the insertion and the email sending, but I don't know how to redirect at this point. I only know the header() function but that doesn't work because of the variables passed to the page right? is there another way to redirect to another page? maybe not even php related, but it has to run after all the code is executed.
or is there a completely different way to do this?
posted
Why can't you call header() at the end of the code block? header() only has to come before any of the rest of your code outputs the page, database stuff and sending email shouldn't effect it.
Posts: 1621 | Registered: Oct 2001
| IP: Logged |