czy ja dobrze rozumiem że przes wysłaniem formularza ty już podstawiasz liczby? może coś takiego pomoże:
<?php
print '<form action= "wynik.php" method="post">'; print 'Wpisz tekst do pola formularza'; print '<input type="text" name="wAx" />'; print '<input type="text" name="wAy" />'; print '<input type="text" name="wBx" />'; print '<input type="text" name="wBy" />'; print '<input type="text" name="wCx" /'; print '<input type="text" name="wCy" />';
print '<input type="submit" value="Licz" />'; ?>
i teraz wynik.php
<?php
$wAx = $_POST['wAx'];
$wBx = $_POST['wBx'];
$wCx = $_POST['wCx'];
$wAy = $_POST['wAy'];
$wBy = $_POST['wBy'];
$wCy = $_POST['wCy'];
$w=abs(($wAx*$wBy + $wAy*$wCx + $wBx*$wCy - $wCx*$wBy - $wCy*$wAx - $wBx*$wAy)/2
);
?>
a register_globals musi być na on.