I have two .php files as such:
test1.php
Sample
This one is fully tested and allows you to revise the value after submission. You still have to worry about cross-site scripting attacks, etc... but that is outside of the scope of the question.
Sample You have chosen Please enter a number
You have chosen