By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,661 Members | 779 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,661 IT Pros & Developers. It's quick & easy.

can i use more than one header(redirecting page)

100+
P: 121
hello all,

i have one problem, after submitting form values into database table, at the same time page has redirect to another page i.e email form
but i am getting error as header already sent.

please get me the solution
Dec 18 '07 #1
Share this Question
Share on Google+
3 Replies


P: 1
hello all,

i have one problem, after submitting form values into database table, at the same time page has redirect to another page i.e email form
but i am getting error as header already sent.

please get me the solution
You could get the data on form A (use your own names, of course), submit it to form B and redirect from form B (after the insert to the database) to form C. There are probably a few other ways to do it too.
Dec 19 '07 #2

100+
P: 121
thankyou for your reply,

yes i can able to send post values into another page (as u said form B) and their i can redirect another page(form C). But this form C is general script, because i want to access this general script from mininum 12 pages. i don't want to create one more page i.e form B, because 12 more script have to be created for my case. so, is there any other way.
Dec 19 '07 #3

P: 24
I just learned from my friend... Not sure if it works for yours...

Add the following at the start of your codes...

ob_start();
Dec 20 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.