Re: [PHP] Assign variable to a block of html code

2007-12-22 Thread php mail
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 ?

Re: [PHP] Assign variable to a block of html code

2007-12-20 Thread Darren Whitlen
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

Re: [PHP] Assign variable to a block of html code

2007-12-20 Thread Peter Ford
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

Re: [PHP] Assign variable to a block of html code

2007-12-20 Thread Daniel Brown
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

RE: [PHP] Assign variable to a block of html code

2007-12-20 Thread Xavier de Lapeyre
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

RE: [PHP] Assign variable to a block of html code

2007-12-20 Thread Xavier de Lapeyre
[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

Re: [PHP] Assign variable to a block of html code

2007-12-19 Thread Stephen Johnson
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

RE: [PHP] Assign variable to a block of html code

2007-12-19 Thread Xavier de Lapeyre
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