Re: Help with variables in email
| From: | rw at xend dot net | Date: | Mon, 18 Nov 2002 15:11:29 +0000 |
| Subject: | Re: Help with variables in email | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-124922@lists.php.net to get a copy of this message | ||
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
###
###