you need to specify where the form submission is going
in your case you want the form submission to be to itself
so you will need action="your php page"
in your form tag
personally i would drop all these print statements
<form ... >
....
</form>
<? if(is_int($number)) {
echo($number);
}else{
}
also specifying you form method as POST will prevent sensitive information from showing up tagged onto your url
?>
kind regards
paul