Can I add two formmail php scripts to one webpage?
For example this one below goes to me from the form submission!
<?php
$subject = "Subject
$message = "First Name: $FN
Last Name: $LN
Email Address: $EA";
$headers .= "To: Webmaster <webmaster@website.com>rn";
$headers .= "From: $FN $LN <$EA>rn";
mail($to, $subject, $message, $headers);
?>
2nd Form, but can you guys help me with the code so not only can it send this email to the person that filled out the form, but to attach a word document from the server. Lets say its @ http://www.website.com/attachthis.doc
<?php
$subject = "Subject
$message = "Thank you for your form submission, below is the information we have received:
First Name: $FN
Last Name: $LN
Email Address: $EA
We have attached "attachthis.doc" which includes our rates and services available.
Thank you,
John Doe";
$headers .= "To: $FN $LN <$EA>rn";
$headers .= "From: John Doe <jdoe@website.com>rn";
mail($to, $subject, $message, $headers);
?>