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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 9:11 AM To: Clint Tredway Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Help with variables in email Seems to me that you are missing the opening and closing PHP tags (<??>) Quoting Clint Tredway <[EMAIL PROTECTED]>: ### 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php