Form Numeric value : TextBox « Form « PHP






Form Numeric value

<HTML>
<BODY>
<FORM METHOD="POST" ACTION="FormNumericValue.php">
   Enter a numeric value:
  <BR>
  <INPUT TYPE="TEXT" NAME="number">
</FORM>
</BODY>
</HTML>


<!-- FormNumericValue.php
<HTML>
<BODY>
<?php
  echo "The number entered was: $number.";
  if ($number > 10)
      echo "<BR>That's a big number.";
?>
</BODY>
</HTML>
-->


           
       








Related examples in the same category

1.Get Text Field value
2.Disable TextBox
3.A PHP Number-Guessing Script