<?phpif ($_POST['name'] != "" && $_POST['msg'] != ""){fputs($guestbook, $usermsg);fclose($guestbook);echo "Thx for using this guestbook.<br />";echo "Your Message has been submited.<br />";echo "Go <a href=\"http://localhost/guestbook.html\">here</a> to view your message";}elseif($_POST['name'] = "" && $_POST['msg'] != "")) {echo "Please fill the name field";}elseif($_POST['name'] != "" && $_POST['msg'] = ""){echo "Please fill the message field";}else{echo "Please fill both of the fields and then submit";}?>