RE: [PHP] Help with variables in email
| From: | Clint Tredway | Date: | Mon, 18 Nov 2002 15:19:33 +0000 |
| Subject: | RE: [PHP] Help with variables in email | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-124923@lists.php.net to get a copy of this message | ||
I just pulled out the code that I needed help with.
I did as was suggested before and now it only outputs to the first
variable.
I still need some help with this..
-----Original Message-----
From: rw@xend.net [mailto:rw@xend.net]
Sent: Monday, November 18, 2002 9:11 AM
To: Clint Tredway
Cc: php-general@lists.php.net
Subject: Re: [PHP] Help with variables in email
Seems to me that you are missing the opening and closing PHP tags (<??>)
Quoting Clint Tredway <ctredway@fishermenstudios.com>:
### I am trying to send an email with form vars inside it but I cannot
seem ### to get the vars to be parsed. ###
### Here is my code:
### /* message */
### $message = '
### <html>
### <head>
### <title>Products Purchased:</title>
### </head>
### <body>
### <p>Customer Information:</p>
### <table>
### <tr>
### <td>Name</td>
### <td>{$name}</td>
### </tr>
### <tr>
### <td>Title</td>
### <td>.$title.</td>
### </tr>
### <tr>
### <td>Email</td>
### <td>.$email.</td>
### </tr>
### <tr>
### <td>Company</td>
### <td>.$company.</td>
### </tr>
### <tr>
### <td>Phone</td>
### <td>.$phone.</td>
### </tr>
### <tr>
### <td>Fax</td>
### <td>.$fax.</td>
### </tr>
### <tr>
### <td>Address</td>
### <td>.$address.</td>
### </tr>
### <tr>
### <td>City</td>
### <td>.$city.</td>
### </tr>
### <tr>
### <td>State</td>
### <td>.$state.</td>
### </tr>
### <tr>
### <td>Postal Code</td>
### <td>.$postalcode.</td>
### </tr>
### <tr>
### <td>Country</td>
### <td>.$country.</td>
### </tr>
### <tr>
### <td colspan=2> </td>
### </tr>
### <tr>
### <td colspan=2>Billing Information</td>
### </tr>
### <tr>
### <td>Card Type</td>
### <td>.$methodofpay.</td>
### </tr>
### <tr>
### <td>Card Name</td>
### <td>.$cardname.</td>
### </tr>
### <tr>
### <td>Exp Date</td>
### <td>.$cardexp.</td>
### </tr>
### </table>
### </body>
### </html>
### ';
###
### This outputs this:
### Customer Information:
###
### Name {$name}
### Title .$title.
### Email .$email.
### Company .$company.
### Phone .$phone.
### Fax .$fax.
### Address .$address.
### City .$city.
### State .$state.
### Postal Code .$postalcode.
### Country .$country.
###
### Billing Information
### Card Type .$methodofpay.
### Card Name .$cardname.
### Exp Date .$cardexp.
###
### Please help me figure this out. I know its simple, but I cannot see
it ### ;) ###
### Thanks,
### Clint
###
###
### --
### PHP General Mailing List (http://www.php.net/)
### To unsubscribe, visit: http://www.php.net/unsub.php
###
###
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php