Contact Form error

Discussion in 'PHP' started by dondor, Apr 15, 2007.

  1. #1
    Hi,

    I have a contact form that returns the following error after you push the submit button:
    Warning: Cannot modify header information - headers already sent by (output started at /home/domain/public_html/folder/contact/process_form.php:1) in /home/domain/public_html/folder/contact/process_form.php on line 84
    Code (markup):
    The 84th line is the line that sends the submittion approved notice and returns the user to the homepage - using a different php file.

    Would appriciate if you have any ideas on how to solve this.

    Thanks,
     
    dondor, Apr 15, 2007 IP
  2. VishalVasani

    VishalVasani Peon

    Messages:
    560
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hello,

    if you use include or require in your page. don't use similar header in current page and included page. This is important header must be top of the codes. Don't use headers bottom of html codes.
     
    VishalVasani, Apr 15, 2007 IP
  3. commandos

    commandos Notable Member

    Messages:
    3,648
    Likes Received:
    329
    Best Answers:
    0
    Trophy Points:
    280
    #3
    check at the bottom of the file if there is empty lines , even this can cause this kind error .
     
    commandos, Apr 15, 2007 IP
  4. EGS

    EGS Notable Member

    Messages:
    6,078
    Likes Received:
    438
    Best Answers:
    0
    Trophy Points:
    290
    #4
    You might want to show the code. :eek:
     
    EGS, Apr 15, 2007 IP
  5. dondor

    dondor Well-Known Member

    Messages:
    844
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #5
    I do not have any empty lines & I don't know exactly which file code to show.

    The only things I've changed in this source codes is the language of the free text and I've changed the file from ANSI to UTF-8 with notepad, so that my language would be accepted.
    Could that cause the problem? and if so how would I fix that?
     
    dondor, Apr 15, 2007 IP