If input field has value Require another field – PHP

You can do this:
if (isset($_POST['twosfn']) && !empty($_POST["twohn"]))