achso, total... *überlesenhat*
schreibs so:
Code:
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">
<title>test</title>
</head>
<body bgcolor="#ffffff">
<p></p>
<form action="format.php" method="post" target="_self">
<table width="339" border="1" cellspacing="2" cellpadding="0">
<tr>
<td>Menge1:</td>
<td><input type="Text" name="zahl1" value="<?php echo $_POST['zahl1'] ?>" size="10"></td>
<td>Preis: 7.50</td>
<td><?php echo number_format($_POST['zahl1'] * 7.50,2,".",","); ?></td>
</tr>
<tr>
<td>Menge2:</td>
<td><input type="Text" name="zahl2" value="<?php echo $_POST['zahl2'] ?>" size="10"></td>
<td>Preis: 7.50</td>
<td><?php echo number_format($_POST['zahl2'] * 7.50,2,".",","); ?></td>
</tr>
<tr>
<td></td>
<td></td>
<td>Total</td>
<td><?php echo $_POST[ 'zahl1' ] * 7.50 + $_POST[ 'zahl2' ] * 7.50; ?></td>
</tr>
</table>
<p><br>
<br>
<br>
<input type="submit" name="berechnen" value="Rechnen"></p>
</form>
<p></p>
</body>
</html>
so schwer wars doch nicht, oder?