Kod: Zaznacz cały
<?php
$wAx = $_GET['wAx'];
$wBx = $_GET['wBx'];
$wCx = $_GET['wCx'];
$wAy = $_GET['wAy'];
$wBy = $_GET['wBy'];
$wCy = $_GET['wCy'];
$w=abs(($wAx*$wBy + $wAy*$wCx + $wBx*$wCy - $wCx*$wBy - $wCy*$wAx - $wBx*$wAy)/2) ;
print '<form action= "wynik.php" method=get>';
print 'Wpisz tekst do pola formularza<br>';
print 'wierzchołekA' ;
print '<input type="text" name="wAx">';
print '<input type="text" name="wAy"><br>';
print 'wierzchołekB' ;
print '<input type="text" name="wBx">';
print '<input type="text" name="wBy"><br>';
print 'wierzchołekC' ;
print '<input type="text" name="wCx">';
print '<input type="text" name="wCy"><br>';
print '<input type="submit" value="Licz">';
print '<form>';
?>