| 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?
| 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.
| 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.)
| 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:
| 8:32 pm on Jul 9, 2012 (gmt 0)|
Yeah, it's usually something so simple you kick yourself when you find it.
| 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,
and now it will be
.. 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. :-)