I have a html form that has just 3 fields and each are defined as name="firstname", name="lastname", and name="email" . The action is calling a sendmail.php file and the method is POST. Here is the contents of sendmail.php:
<?php $to = "[EMAIL PROTECTED]"; $subject = "Form Submission"; $contents = "$firstname, $lastname, $email"; mail ($to, $subject, $contents); header ("Location: http://probsd.org/rlewis/thankyou.txt"); ?> When submitting the form, mail gets sent to [EMAIL PROTECTED] with the subject defined in sendmail.php, but the contents simply displayes both of the commas from $contents = and not $firstname, $lastname, and $email. Syntax error or what? Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php