At 00:55 24.02.2003, Peter Gumbrell said:
--------------------[snip]--------------------
>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";
--------------------[snip]-------------------- 

When using array elements within a string you must enclose it in curly
brackets, like this:

print "<form method=\"POST\" name=\"update_workshop\"
action=\"{$_SERVER['PHP_SELF']}\">\n";

HTH,

-- 
   >O     Ernest E. Vogelsinger
   (\)    ICQ #13394035
    ^     http://www.vogelsinger.at/



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

Reply via email to