Hi,
I think this should work $_SERVER['PHP_SELF'] instead of $PHP_SELF.
Try this by your self by putting this in a single .php page.
[PHP]<?php
echo '<form name="PHP" action="'.$PHP_SELF.'" method="POST">';
echo '<input type="submit" name="click_php" value="PHP form" />';
echo '</form>';
if($_POST['click_php'])
{
echo 'This is from PHP form';
}
?>
<HTML>
<body>
<form name = "HTML" action="<? $_SERVER['PHP_SELF'] ?>" method="POST">
<input type="submit" name="click_html" value="HTML form" />
</form>
</body>
</HTML>
<?
if($_POST['click_html'])
{
echo 'This from HTML form';
}
?>[/PHP]