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:
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
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.
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!