Страница "example.php":
Код: Выделить всё
<form name="example_form" action="test.php" method="get">
<input type="text" name="first" size="4" maxlenght="4">
<input type="text" name="second" size="4" maxlenght="4">
<input type="submit" value="Умножить">
</form>
Страница "test.php":
Код: Выделить всё
<?php
Header("Content-type: text/html");
echo "$first умножить на $second получится ", $first*$second;
?>
Код: Выделить всё
Notice: Undefined variable: first in c:\program files\easyphp1-8\www\test.php on line 5
Notice: Undefined variable: second in c:\program files\easyphp1-8\www\test.php on line 5
умножить на получится
Notice: Undefined variable: first in c:\program files\easyphp1-8\www\test.php on line 5
Notice: Undefined variable: second in c:\program files\easyphp1-8\www\test.php on line 5
0