geebeetoo
asked on
direct to another page after submit is successful (in wordpress)
My users will login from login.php which is /http//:mydomain/orderproc ess/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/
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
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
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 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?
ASKER
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?
ASKER
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.
ASKER
The Header() finally worked! I had stuff in quotes within quotes!!
Thank you!
Thank you!
Thanks for the points -- glad you're on the right track, ~Ray
ASKER
"Cannot modify header information - headers already sent by "