Re: [PHP] Help with variables in email
You are using single quotes, either do $message = 'html '. $some_var . ' .'; or $message = html . $some_var .; // using double quotes Clint Tredway wrote: 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 titleProducts Purchased:/title /head body pCustomer Information:/p table tr tdName/td td{$name}/td /tr tr tdTitle/td td.$title./td /tr tr tdEmail/td td.$email./td /tr tr tdCompany/td td.$company./td /tr tr tdPhone/td td.$phone./td /tr tr tdFax/td td.$fax./td /tr tr tdAddress/td td.$address./td /tr tr tdCity/td td.$city./td /tr tr tdState/td td.$state./td /tr tr tdPostal Code/td td.$postalcode./td /tr tr tdCountry/td td.$country./td /tr tr td colspan=2nbsp;/td /tr tr td colspan=2Billing Information/td /tr tr tdCard Type/td td.$methodofpay./td /tr tr tdCard Name/td td.$cardname./td /tr tr tdExp 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
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 ### titleProducts Purchased:/title ### /head ### body ### pCustomer Information:/p ### table ### tr ### tdName/td ### td{$name}/td ### /tr ### tr ### tdTitle/td ### td.$title./td ### /tr ### tr ### tdEmail/td ### td.$email./td ### /tr ### tr ### tdCompany/td ### td.$company./td ### /tr ### tr ### tdPhone/td ### td.$phone./td ### /tr ### tr ### tdFax/td ### td.$fax./td ### /tr ### tr ### tdAddress/td ### td.$address./td ### /tr ### tr ### tdCity/td ### td.$city./td ### /tr ### tr ### tdState/td ### td.$state./td ### /tr ### tr ### tdPostal Code/td ### td.$postalcode./td ### /tr ### tr ### tdCountry/td ### td.$country./td ### /tr ### tr ### td colspan=2nbsp;/td ### /tr ### tr ### td colspan=2Billing Information/td ### /tr ### tr ### tdCard Type/td ### td.$methodofpay./td ### /tr ### tr ### tdCard Name/td ### td.$cardname./td ### /tr ### tr ### tdExp 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
RE: [PHP] Help with variables in email
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 ### titleProducts Purchased:/title ### /head ### body ### pCustomer Information:/p ### table ### tr ### tdName/td ### td{$name}/td ### /tr ### tr ### tdTitle/td ### td.$title./td ### /tr ### tr ### tdEmail/td ### td.$email./td ### /tr ### tr ### tdCompany/td ### td.$company./td ### /tr ### tr ### tdPhone/td ### td.$phone./td ### /tr ### tr ### tdFax/td ### td.$fax./td ### /tr ### tr ### tdAddress/td ### td.$address./td ### /tr ### tr ### tdCity/td ### td.$city./td ### /tr ### tr ### tdState/td ### td.$state./td ### /tr ### tr ### tdPostal Code/td ### td.$postalcode./td ### /tr ### tr ### tdCountry/td ### td.$country./td ### /tr ### tr ### td colspan=2nbsp;/td ### /tr ### tr ### td colspan=2Billing Information/td ### /tr ### tr ### tdCard Type/td ### td.$methodofpay./td ### /tr ### tr ### tdCard Name/td ### td.$cardname./td ### /tr ### tr ### tdExp 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
Re: [PHP] Help with variables in email
On Monday 18 November 2002 23:19, Clint Tredway wrote: 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. ### td.$title./td You did not do as was suggested. You need to do something like: $message = 'some html stuff and now here comes a variable called name ' . $name . ' and some more html and another variable ' . $title . ' etc etc'; Try something simple first with a couple of lines. When you get the hang on of it then build something more complex. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Schshschshchsch. -- The Gorn, Arena, stardate 3046.2 */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help with variables in email
add single quote ['] before and after every dot [.] : /* message */ $message = ' html head titleProducts Purchased:/title /head body pCustomer Information:/p table tr tdName/td td'.$name.'/td /tr tr tdTitle/td td'.$title.'/td /tr tr tdEmail/td td'.$email.'/td . . .. . ... -- Maxim Maletsky [EMAIL PROTECTED] Clint Tredway [EMAIL PROTECTED] wrote... : 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 titleProducts Purchased:/title /head body pCustomer Information:/p table tr tdName/td td{$name}/td /tr tr tdTitle/td td.$title./td /tr tr tdEmail/td td.$email./td /tr tr tdCompany/td td.$company./td /tr tr tdPhone/td td.$phone./td /tr tr tdFax/td td.$fax./td /tr tr tdAddress/td td.$address./td /tr tr tdCity/td td.$city./td /tr tr tdState/td td.$state./td /tr tr tdPostal Code/td td.$postalcode./td /tr tr tdCountry/td td.$country./td /tr tr td colspan=2nbsp;/td /tr tr td colspan=2Billing Information/td /tr tr tdCard Type/td td.$methodofpay./td /tr tr tdCard Name/td td.$cardname./td /tr tr tdExp 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