[PHP] html formating trouble
I'm having trouble with formating the html output. I have the black background, and in function function javni(){ echo font color=#FFovo je javna strana /font ; } I get the parse error in the last function line. If I remove the font tag, it works ok, but the text is black as well. body bgcolor=#00 text=#ff is the first html body line. What should I do ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] html formating trouble
So sprach »Nikola Veber« am 2001-09-15 um 07:09:20 +0200 : I'm having trouble with formating the html output. I have the black background, and in function function javni(){ echo font color=#FFovo je javna strana /font ; Here, PHP stops parsing the string which is to be printed by echo right before the #FF. You either need to break your fingers and write: echo font col=\#ff\.; or have it much simpler, faster and better and use single quotes instead: echo 'font col=ff..'; Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 1 day 12 hours 44 minutes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re[2]: [PHP] html formating trouble
echo font color=#FFovo je javna strana /font ; AS Here, PHP stops parsing the string which is to AS be printed by echo right before the #FF. AS You either need to break your fingers and AS write: AS echo font col=\#ff\.; AS or have it much simpler, faster and better and AS use single quotes instead: AS echo 'font col=ff..'; Or try something like this (but i'm shure you won't want to use it :) echo END font color=#FFovo je javna strana /font END; -- Andrew Perevodchik [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] html formating trouble
So sprach »Andrew Perevodchik« am 2001-09-14 um 22:15:40 +0300 : Or try something like this (but i'm shure you won't want to use it :) echo END Oh, right, totaly forgot about here-docs :) What's the use of it anyhow? I mean, normal strings (double-/singlequotes) can also span multiple lines. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 1 day 13 hours 45 minutes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re[2]: [PHP] html formating trouble
AS Oh, right, totaly forgot about here-docs :) AS What's the use of it anyhow? I mean, normal AS strings (double-/singlequotes) can also span AS multiple lines. The only reason i see -- you don't have to escape any quotes. You can just paste a piece of HTML and insert variables in there without ?=...? ;) However in the book I'm using about PHP they recomend not to use it. But no good reasons are given... -- Andrew Perevodchik [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] html formating trouble
So sprach »Andrew Perevodchik« am 2001-09-14 um 22:34:02 +0300 : The only reason i see -- you don't have to escape any quotes. You can just paste a piece of HTML and insert variables in there without ?=...? ;) Yep, that's the only reason I see for here-docs as well. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 1 day 14 hours 5 minutes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] html formating trouble
On Fri, 14 Sep 2001 20:22:07 +0200, Alexander Skwar wrote: So sprach »Nikola Veber« am 2001-09-15 um 07:09:20 +0200 : I'm having trouble with formating the html output. I have the black background, and in function function javni(){ echo font color=#FFovo je javna strana /font ; Here, PHP stops parsing the string which is to be printed by echo right before the #FF. You either need to break your fingers and write: echo font col=\#ff\.; or have it much simpler, faster and better and use single quotes instead: echo 'font col=ff..'; I like it better like this: function javni(){ ?font color=#FFovo je javna strana /font? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]