Update do.php

Added Function valCheck.