All pastes #931438 Raw Edit

Anonymous

public php v1 · immutable
·published 2008-03-07 05:14 UTC
rendered paste body
<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;  }?>