right. ok then, how about replacing the reference to
$_SERVER['PHP_SELF']
with a relative link to your page.
i.e. If you're script is named formpost.php...
<?
if(isset($_POST['v1']) && isset($_POST['v2']))
{
echo $_POST['v1']."<br>";
echo $_POST['v2']."<br>";
}
else
{
?>
<table border=1 align=center>
<tr>
<td>
<table>
<tr>
<td>
<a href="javascript:document.tosubmit.submit();">Sum</a>
</td>
</tr>
</table>
</td>
<td>
<table>
<tr>
<td>
<form name="tosubmit" action="formpost.php" method="post">
<input type=text name=v1 size=5> <br>
<input type=text name=v2 size=5>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
<?
}
?>
And if that doesn't work then you're on your own 'cause it works here. Anyone who doubts me, I'll send you the screenshots.