g1smd

msg:4473690 | 8:52 pm on Jul 8, 2012 (gmt 0) |
A Google search revealed a post that linked to this huge warning: [php.net...] (scroll down a little bit). Is that of any use?
|
oldcode

msg:4473698 | 10:44 pm on Jul 8, 2012 (gmt 0) |
Its not at all clear to me what's wrong and why it doesn't work.
|
rocknbil

msg:4473847 | 4:14 pm on Jul 9, 2012 (gmt 0) |
The translation is: it's probably something in your line endings hosing it up in the HEREDOC method. I'd guess that it's what you're editing it in, try Notepad (a NON rich text editor) and upload in ASCII. Your code runs fine as is from here. If you're going to delve into this subject matter, I'd also suggest a valid doctype and drop the deprecated <center> tags. Apply margin: auto to your form instead, and remove spaces around attribute assignments. (Doesn't relate to PHP, relates to html output.)
|
oldcode

msg:4473859 | 5:20 pm on Jul 9, 2012 (gmt 0) |
Thank you both for your responses! I was able to find the problem by removing everything inside the HEREDOC and adding code back in one piece at a time. There was a missing semicolon between $borderSize and $sizeType: "border-width:$borderSize;$sizeType;border-style:$borderStyle;border-color:green"
|
g1smd

msg:4473902 | 8:32 pm on Jul 9, 2012 (gmt 0) |
Yeah, it's usually something so simple you kick yourself when you find it.
|
rocknbil

msg:4474199 | 3:59 pm on Jul 10, 2012 (gmt 0) |
As said, it ran verbatim for me. :-) It should have worded fine and is likely to break in your actual CSS now. The reason it works now is probably not what you think, it's likely in editing it you "fixed" the line returns. As you had it, border-width:$borderSize$sizeType; would give border-width:1px; and now it will be border-width:1;px; .. which is invalid CSS - however since you don't have a valid doctype the HTML output is in Quirks mode and may work by error. :-)
|
|