Re: how call a variable in a text

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

 



Bulend Kolay wrote:
> I 'll send a mail in html form using php5.
> 
> cat send.php
> <?php
> $variable="date1" ;
> ..
> ..
> $message='
> 
> <b> There is a text $variable  trial. </b>
> ';
> 
> mail($to, $subject, $message, $headers) ;
> ?>
> 
> when I run send.php, I get the mail. But I can't call variable called
> variable. it comes as string.
> How can I correct this?

http://us2.php.net/manual/en/language.types.string.php

$message= "<b> There is a text $variable  trial. </b>";

-- 
Thanks!
-Shawn
http://www.spidean.com

-- 
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