This is topic php redirection question(answered) in forum Books, Films, Food and Culture at Hatrack River Forum.


To visit this topic, use this URL:
http://www.hatrack.com/ubb/main/ultimatebb.php?ubb=get_topic;f=2;t=052710

Posted by Strider (Member # 1807) on :
 
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?

[ May 02, 2008, 02:40 AM: Message edited by: Strider ]
 
Posted by HollowEarth (Member # 2586) on :
 
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.
 
Posted by Strider (Member # 1807) on :
 
oh, never mind, i'm an idiot. i had some html being outputted before the header() call.
 


Copyright © 2008 Hatrack River Enterprises Inc. All rights reserved.
Reproduction in whole or in part without permission is prohibited.


Powered by Infopop Corporation
UBB.classic™ 6.7.2