On 16/04/07, Steve Finkelstein <sf(a)stevefink.net> wrote:
$wgOut->addHTML('<form
method="POST"
action="'.$_SERVER['PHP_SELF'].'">');
Variables won't be interpolated inside single quotes. Use something like:
global $wgTitle;
$action = $wgTitle->escapeLocalUrl();
$wgOut->addHtml( "<form method=\"post\"
action=\"{$action}\">" );
[The use of $wgTitle, or another constructed Title object representing
the special page, is the standard method of obtaining a canonical URL
in MediaWiki.]
Rob Church