0

Hi;
I'm sorry if this is a really newb level question. I have a register script and a login script. Both of my scripts work great seperatly until I include the login script with the register script. I know you aren't allowed to have two headers on one page and I have done a lot of searching through books and google but can't find a command similar to header that will redirect to the next page in php. Any help would be appreciated thank you!!

3
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by network18
0

There are few more ways to do redirection apart from headers, one of them is through js and other using anchor tag.
put the link in the href of <a> tag.

0

There are few more ways to do redirection apart from headers, one of them is through js and other using anchor tag.
put the link in the href of <a> tag.

Thanks for the reply. I haven't dabbled in JS much so I'm not sure how I would achieve my goal that way. I'll do some research on it.

0

You can have as many headers in the script as you want, just make sure your control flow only uses one. PHP is probably complaining about this because it's encountering 2 headers in its normal flow. Use IF conditions to check which header needs to be fired. This should solve your problem.

0

Thanks for the reply. I haven't dabbled in JS much so I'm not sure how I would achieve my goal that way. I'll do some research on it.

Appreciate your efforts.If you get around with js working fine, then implement that, or else use the anchor tag (i.e. <a href=" " >your link</a> )
If you find any difficulties in it , post your that part of code here, we will help to get it working.:)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.