Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

57 users online



Modifying headers

Modifying headers

Currently viewing this thread: 1 (0 members and 1 guests)


mcrob

mcrob

Neverside Newbie
Status: Offline!

Modifying headers

Hey users whats up. I gotta question...

I made a "change email" page where the user can edited there email address. What I did was I made it so if they change there email address, there account activation gets turned off, an account instructions link gets sent to there new email address and after all of that, I wanted to redirect them to the logout page. But for some reason it keeps saying that the headers was already sent on line "whatever number" and in that line it has this

mail($to, $subject, $message, $header); // send the e-mail

Because its sending out the mail, the headers was already sent. therefore it wont allow me to make more than one header to be sent. Is it possible that I can make more than one header because I wanted to redirect the user to the logout page once they change there email address and the information gets sent to there email address.

___________________

RoB

mcrob

mcrob

Neverside Newbie
Status: Offline!

Hey there I used the

ob_start();

ob_end_flush();

code. Since Im using this, will it be able to still send the mail out and redirect me to the loguout at the sametime?

___________________

RoB

ringpull

ringpull

Neversidian
Status: Offline!

Yup. Should do.
Send the mail then do the header to redirect.

Last edited by ringpull, November 19th, 2005 03:18 PM (Edited 1 times)

aonic

aonic

Neversidian
Status: Offline!

or you can do:

<script type="text/javascript">window.location='http://haxxxxxxxx.com';</script>

___________________

-Developer
-Forum Leader
-NeverNET

dexter

dexter

Neverside Newbie
Status: Offline!

Or Meta Tag redirect if you don't want to use javascript as some people have it disabled. Whistle

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0157 seconds.