Link to home
Create AccountLog in
Avatar of geebeetoo
geebeetoo

asked on

direct to another page after submit is successful (in wordpress)

My users will login from login.php which is /http//:mydomain/orderprocess/login/ in wordpress - due to permalink.

If the user does not log in successfully - ie wrong password or username - return to same login page, but if successful - how do I code in my php page template to go to http//:mydomain/orderprocess/
SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of geebeetoo
geebeetoo

ASKER

I get this error when I do that.

"Cannot modify header information - headers already sent by "
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
What have missed in my learning of php to have written a script that violates this HTTP protocol?

I have done magnificent and complex web applications, yet I never had issue with this even not knowing this HTTP protocol...

What basic practice am I not aware of to write my script as to have the header first in a conditional situation?
I am developing an website within Wordpress for the first time. The ob_start() worked, but the header() simply appended the url to the existing url. How can I get that to replace the url?
Ok, I found the way to write my script and avoid the ob_start(); and the header is sent, but it appends to previous url.
The Header() finally worked! I had stuff in quotes within quotes!!

Thank you!
Thanks for the points -- glad you're on the right track, ~Ray