Results 1 to 6 of 6
  1. #1

    PHP error message

    I had this little mail form working fine but now that I changed to new hosting company, I get this message on top of page:

    Code:
    Warning: Cannot add header information - headers already sent by (output started at /home/mrxsssco/public_html/thanks.php:9) in /home/mrxsssco/public_html/thanks.php on line 14
    amyone knows what that's supposed to mean? thx!
    ::::::::::::::::::::::::::::::::::::::::::::::
    :[ h:i:p ] [ c:o:o:l ] [ f:u:n ] [ s:e:y ]:
    ::::::::c::e::c::k::i::t::o::u::t::::::::
    :::::::: http://www.mrxsss.com ::::::::

  2. #2
    that means you have a line break, white space or script between the opening php tag and your headers, which scr*** it up, headers gotta go first!
    Joe
    www.eyezberg.com

  3. #3
    mmm...

    I'm definitly not a PHP guru or anything like that. I just figured it would be the easiest way to get a little mail form on my site...

    I dont see anything wrong with my syntax, but even tho I checked, tha's probably what it is...

    Here's the file, it's very short, and it should only take 10 sec for one of the Kirupa gurus to figure it out

    Thank you
    ::::::::::::::::::::::::::::::::::::::::::::::
    :[ h:i:p ] [ c:o:o:l ] [ f:u:n ] [ s:e:y ]:
    ::::::::c::e::c::k::i::t::o::u::t::::::::
    :::::::: http://www.mrxsss.com ::::::::

  4. #4
    I guess you can't ul files w/ .php
    oops! I zipped it.
    ::::::::::::::::::::::::::::::::::::::::::::::
    :[ h:i:p ] [ c:o:o:l ] [ f:u:n ] [ s:e:y ]:
    ::::::::c::e::c::k::i::t::o::u::t::::::::
    :::::::: http://www.mrxsss.com ::::::::

  5. #5
    You have to set the cookie before the HTML. I have never done it before but I think if you just put the PHP before the HTML code, you should be all set.

  6. #6
    that works!
    I understand what I was doing wrong now, my PHP file calls another one w/ HTML formatting already in it, so it was redundant. I actually remove all the HTML from this particular page since it's just the action that's called by the "submit" form, it sets cookies and e-mail the message...
    I don't know why it was working fine on my previous hosting company tho...
    Thanks a bunch! I learned a little more about PHP thx 2 u!
    ::::::::::::::::::::::::::::::::::::::::::::::
    :[ h:i:p ] [ c:o:o:l ] [ f:u:n ] [ s:e:y ]:
    ::::::::c::e::c::k::i::t::o::u::t::::::::
    :::::::: http://www.mrxsss.com ::::::::

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012