Update test2.php

JavaScript validation implemented for integer validation.