[PHP] Strings and default values...

2002-12-20 Thread Steven Kallstrom
Dear List, This is a simple problem, but I can't really find a good solution. and I have a general question also. 1) I have a webform that is save to a variable $html using heredoc. $html = WEBFORM . input name=company type=text value=$company . the problem is that when

Re: [PHP] Strings and default values...

2002-12-20 Thread Leif K-Brooks
1) You most likely have magic_quotes_gpc set to on. Either set it to off or stripslashes() the input. 2) No, it won't print. Think of a heredoc as a quotes string without the quotes. You can, however, do something like: $variable = WHATEVER whatever text goes here WHATEVER; $variable.=