On Sun, 23 Feb 2003 18:55:06 -0500, you wrote:

>Could someone tell me why this code prompts a parse error. I have tried it
>several different way. The statement is called from within a function:
>
>print "<form method=\"POST\" name=\"update_workshop\"
>action=\"$_SERVER['PHP_SELF']\">\n";

echo ('<form method="POST" name="update_workshop" action="' .
$_SERVER['PHP_SELF'] . '">' . "\n");

works for me (moved the variable outside the string). I first thought it
might be a scope problem, but $_SERVER is apparently a superglobal so
that's not it.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to