Anonymous
public php v1 · immutable<form action="<?php PHP_SELF; ?>" method="post"> First Number: <input type="text" name="num1" /><br /> <input type="text" name="math" /><br /> Second Number: <input type="text" name="num2" /><input type="submit" name="submit" value="Calculate" /></form><?php if ($_REQUEST['submit']) { $x = $_REQUEST['num1']; $y = $_REQUEST['num2']; $math = $_REQUEST['math']; $results = $x $math $y; echo $results; }?>