RE: [PHP] function definition causing problems?
| From: | Johnson, Kirk | Date: | Mon, 24 Jun 2002 16:15:22 +0000 |
| Subject: | RE: [PHP] function definition causing problems? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-103618@lists.php.net to get a copy of this message | ||
> Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting
T_STRING or T_VARIABLE or T_NUM_STRING in
C:\inetpub\wwwroot\PHP\cat_proto3.php on line 46
> Line 46 corresponds to the form tag, as follows:
>
> <FORM ACTION="<?php echo $_SERVER['PHP_SELF'] ?>"
> method="POST">
When you echo out an array element, the name needs to be enclosed in
curlies, e.g.,
echo {$_SERVER['PHP_SELF']}
Sorry, can't give you the manual reference.
Kirk