| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jul 2006
Posts: 8
|
PHP Form - header()
Hey, I made this php mail form and for some reason I cannot get the header() funtion to work.. It's probably simple, but I can't get it to work at all (the code is below). After the form is submitted with all the correct information, i want it to redirect to another page, in this case its just google.ca for now. I can get it to echo a success message, but it wont redirect with the header() and i havent sent anything to the browser previously to that. How can i get this to redirect!? Thanks in advance. PHP Code:
|
|
|
|
|
|
#3 (permalink) |
|
Registered User
Join Date: Jul 2006
Posts: 8
|
I understand what you mean, but it shouldn't matter since it's in a conditional, or should it ? I've seen the header fuction used in the middle of pages in many website tutorials and books. Anywho, how would I reposition this? Thanks again. EDIT: Okay, i jammed that whole chunck of php code above every piece of html (even the <html> tag) and when i go to that page i just get the blank white page in a browser.... any advice? thanks Last edited by shaunfowler : 11-08-2006 at 23:37. |
|
![]() |