RE: [PHP-WIN] New guy to PHP Mail Parse question
| From: | Chris Kranz | Date: | Sun, 19 Jan 2003 18:15:13 +0000 |
| Subject: | RE: [PHP-WIN] New guy to PHP Mail Parse question | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-17979@lists.php.net to get a copy of this message | ||
Make sure you have global variables set on in your php.ini
If you can't change this, then try doing $_POST['variable name'] to get
the form fields...
Unless your submitting your form using GET ofcourse, then use $_GET
chris kranz
fatcuban.com
-----Original Message-----
From: Rafael Alan Bleiweiss [mailto:CFusion@BrionaNet.com]
Sent: Sunday, January 19, 2003 6:01 PM
To: php-windows@lists.php.net
Subject: [PHP-WIN] New guy to PHP Mail Parse question
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");
?>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php