Re: putting variables in a variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/28/2011 4:06 AM, "Hulf" <ross@xxxxxxxxxxxxxx> wrote:

> Hi,
> 
> I am making and HTML email. I have 3 images to put in. Currently I have
> 
> $body .="
> <table>
>   <tr>
>     <td><img src=\"image1.jpg\"></td>
>   </tr>
> 
>   <tr>
>     <td></td>
>   </tr>
> </table>
> ";
> 
> 
> ideally I would like to have
> 
> $myimage1 = "image1.jpg";
> $myimage2 = "image2.jpg";
> $myimage3 = "image3.jpg";
> 
> 
> and put them into the HTML body variable. I have tried escaping them in
> every way i can think of, dots and slashes and the rest. Any ideas?


I'm just a newbie - but

I did something like this (non - html mail) ... If it helps...

I created this var called $thebody - then stuck it in the mail tag... And it
works

--------------


$thebody = 'This is a some info...

UserID#: '. $_SESSION['nowuser'].'
Company: '.$_SESSION['now_co'].'

Worker Info: '. $edit_result_row->getField('First').' '.
$edit_result_row->getField('Last').'

Thanks,

';

---------------
--
Thanks - RevDave
Cool @ hosting4days . com
[db-lists]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux