Hello All:
I am building a form using heredoc, but this line ends up giving me whitespace parse errors ("Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING"):
<form name="add_resort" id="add_resort" method="post" action="$_SERVER['PHP_SELF']"/>
I have tried $SERVER[PHP_SELF], $SERVER["PHP_SELF"], {$_SERVER['PHP_SELF']} and any other thing I can think of and I still get the errors.
I have cheked and double checked the rest of the code, and even though the parse error indicates a later line, if I change that line to a filename or simple variable the error goes away. What am I doing wrong?
Thanks in advance,