All pastes #245392 Raw Edit

Untitled

public text v1 · immutable
#245392 ·published 2006-11-10 22:57 UTC
rendered paste body
<?
if(isset($_REQUEST['submit'])){
$spend=$_REQUEST['spend'];


$total = $spend + 12 ;
}

?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<p>&nbsp;</p>
<form id="form1" name="form1" method="post" action="">
  <table width="300" border="0">
    <tr>
      <td width="113">Spending Limit </td>
      <td width="177"><input name="spend" type="text" id="spend" /></td>
    </tr>
    <tr>
      <td>Annual spent </td>
      <td><input name="aspend" type="text" id="aspend" value="<? echo $total ;  ?>" /></td>
    </tr>

    <tr>
      <td>&nbsp;</td>
      <td><input type="submit" name="Submit" value="Submit" /></td>
    </tr>
  </table>
</form>
<p>&nbsp;</p>
</body>
</html>