Attached php "Thank You" page processes a Sign Up form.
Currently it correctly inserts data into database and sends an email notifying the website owner they have a new sign up.
However, the email no longer formats correctly, sending the sign up info as an attachment instead of as an html email.
Also, the last field in the data table is "joined" and should be the current date - yyyy-mm-dd - when the person signed up.
Also, please make sure data is processed to remove tags such as < > / \ to protect against sql injection attacks.
The email part worked fine until I added the INSERT into database stuff.
Couldn't get any of it to work until I added the "if($result)" part, but now it only sort of works, inserting into database and sending an email with a good header but the $message as an attachment.
Yes I clearly have no idea what I'm doing. Yes I have other projects I could use help with.