Hi Everyone,
Thanks for pointing me to heredoc syntax. I've got it working out nicely now
;)
Regards,
Feris
On 12/20/07, Daniel Brown [EMAIL PROTECTED] wrote:
On Dec 19, 2007 10:38 PM, php mail [EMAIL PROTECTED] wrote:
Hi All,
Is it possible to assign variable to a block of html code ?
a variable.
To use it afterwards simply call the $mylokvar variable.
Hope it helped!
Xavier
Web Developer
Site: www.eds.mu
-Original Message-
From: Stephen Johnson [mailto:[EMAIL PROTECTED]
Sent: jeudi 20 décembre 2007 07:43
To: php mail; PHP General List
Subject: Re: [PHP] Assign variable
You could just swap all the double quotes in the HTML tags for single quotes -
that would work in this instance...
$myblokvar =
table width='487' border='0' cellspacing='0' cellpadding='0'
...
/table
;
Or perhaps a HereDoc syntax:
$myblokvar = EndOfMyHTMLBlock
table width=487 border=0
On Dec 19, 2007 10:38 PM, php mail [EMAIL PROTECTED] wrote:
Hi All,
Is it possible to assign variable to a block of html code ?
Something like this :
$myblokvar =
table width=487 border=0 cellspacing=0 cellpadding=0
tr
tdtable width=487 border=0 cellspacing=0 cellpadding=0
Yeps,
Sorry bout that.
Thnks for pointing it out.
Xavier
-Original Message-
From: Darren Whitlen [mailto:[EMAIL PROTECTED]
Sent: jeudi 20 décembre 2007 13:13
To: php-general@lists.php.net
Subject: Re: [PHP] Assign variable to a block of html code
Xavier de Lapeyre wrote:
You should
[mailto:[EMAIL PROTECTED]
Sent: jeudi 20 décembre 2007 13:17
To: php-general@lists.php.net
Subject: Re: [PHP] Assign variable to a block of html code
You could just swap all the double quotes in the HTML tags for single quotes -
that would work in this instance...
$myblokvar =
table width='487' border
What you have will work, you just need to escape out the double quotes in
the html.
On 12/19/07 7:38 PM, php mail [EMAIL PROTECTED] wrote:
Hi All,
Is it possible to assign variable to a block of html code ?
Something like this :
$myblokvar =
table width=487 border=0
Subject: Re: [PHP] Assign variable to a block of html code
What you have will work, you just need to escape out the double quotes in
the html.
On 12/19/07 7:38 PM, php mail [EMAIL PROTECTED] wrote:
Hi All,
Is it possible to assign variable to a block of html code ?
Something like
8 matches
Mail list logo