Heya,
I made a process file that sends form information to my email, but I want certain text fields and list/menus to be displayed on the same lines in the email that is sent to me. I know it's a simple fix, I just don't know how to do it. Can anyone help?
Source files are at http://www.hookweb.net/testing/first_ca ... rocess.php and http://www.hookweb.net/testing/first_ca ... s/time.php
Need help, multiple lines on my $msg and $_POST code...
Moderator: General Moderators
-
WithHisStripes
- Forum Contributor
- Posts: 131
- Joined: Tue Sep 13, 2005 7:48 pm
-
WithHisStripes
- Forum Contributor
- Posts: 131
- Joined: Tue Sep 13, 2005 7:48 pm
Heya,
Sorry, yeah I know it's a little confusing, I'm not sure of the right terminology. But here, check this out:
//General Information
$msg="First Name: " . $_POST['first_name'] . "\n";
$msg.="Last Name: " . $_POST['last_name']. "\n";
$msg.="Email: " . $_POST['email']. "\n";
$msg.="Telephone: " . $_POST['country_code, area_code, 3_digits, 4_digits']. "\n";
$msg.="Payment Type" . $_POST['Payment Type']. "\n";
$msg.="Card Number and Security Code: " . $_POST['card_number, security_code']. "\n";
$msg.="Expiration Date Month and Year: " . $_POST['month, year']. "\n";
Do you see on the telephone line how I have my text field names in the parenthesis? Well, what I am trying to do is get those text fields to be displayed on the same line when it's emailed to me. Does that make better sense? So when I get an email with this information in it I want it to look like this:
First Name: Spencer
Last Name: Hill
Email: Whomever@Whatever.com
Telephone: (503)-885-9999
City: Sherwood
State or Province: OR
Name of State or Province If It Wasn't Listed: Oregon
Country: Australia
Skills and Abilities: Blah blah blah
Comments: Comments
But what happens, is the telephone and any other lines that I want to be listed on the same line (ie the telephone number) won't even appear.
Any ideas?
-Spence
Sorry, yeah I know it's a little confusing, I'm not sure of the right terminology. But here, check this out:
//General Information
$msg="First Name: " . $_POST['first_name'] . "\n";
$msg.="Last Name: " . $_POST['last_name']. "\n";
$msg.="Email: " . $_POST['email']. "\n";
$msg.="Telephone: " . $_POST['country_code, area_code, 3_digits, 4_digits']. "\n";
$msg.="Payment Type" . $_POST['Payment Type']. "\n";
$msg.="Card Number and Security Code: " . $_POST['card_number, security_code']. "\n";
$msg.="Expiration Date Month and Year: " . $_POST['month, year']. "\n";
Do you see on the telephone line how I have my text field names in the parenthesis? Well, what I am trying to do is get those text fields to be displayed on the same line when it's emailed to me. Does that make better sense? So when I get an email with this information in it I want it to look like this:
First Name: Spencer
Last Name: Hill
Email: Whomever@Whatever.com
Telephone: (503)-885-9999
City: Sherwood
State or Province: OR
Name of State or Province If It Wasn't Listed: Oregon
Country: Australia
Skills and Abilities: Blah blah blah
Comments: Comments
But what happens, is the telephone and any other lines that I want to be listed on the same line (ie the telephone number) won't even appear.
Any ideas?
-Spence