hi.
ich hab ne kleine Spielerei für Mathe gemacht... Diese Funktioniert leider nicht, ich weiß auch nich wieso. Also könnt ihr mir bitte kurz helfen?
PHP-Code:
echo "<div algin="center"><hr2>mathematik</hr2></div><br>";
echo "X-Variabel
<form method="post"action="$PHP_SELF">
<input type="text" name="x" maxlength="2">
<input type="submit" name="enter" value="Berechnen"></form>";
if($enter)
{
$y1 = -0,25 * $x * $x;
$y2 = 2 * $x;
$y3 = 2;
$y = $y1 + $y2 + $y3;
echo $y;
echo "y1 = $y1<br>";
echo "y2 = $y2<br>";
echo "y3 = $y3<br>";
}
Auf linie 9 soll ein Fehler sein, weiß aber nich welcher, also bite helfen!
Danke, Driel
edit thema geklärt... Statt komma, punkt setzen.