New guy to PHP Mail Parse question
| From: | (Rafael Alan Bleiweiss) | Date: | Sun, 19 Jan 2003 18:01:07 +0000 |
| Subject: | New guy to PHP Mail Parse question | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-17978@lists.php.net to get a copy of this message | ||
Hi everyone - new to PHP , Cold Fusion background...
I've got a client with a mail form on their site that needs to be posted to an email account and it doesn't work he asked me to look at it... it's on Windows and the form has fields like this:
first_name
last_name
dayphone_1
dayphone_2
dayphone_3
mortgage_past_due
reason_for_applying
In the PHP process page that he sends the form to I think it's a simple problem but it sends an email but the fields are left blank - what's wrong with the following code?
<?php
mail("bwaring@dataconsulting.com","Web Site Application","
hey, a form:
first name: $first_name
last name: $last_name
day phone: $day_phone_1 $day_phone_2 $day_phone_3
--------------------------
Is Your Mortgage Current Or Past Due: $mortgage_past_due
Reason for Applying: ---------------------------
$reason_for_applying
------------------------------------------------
","From: form@epic.com\n");
header("location:form_submitted.html\n");
?>