Home > Error Message > Javascript Alert

Javascript Alert

Contents

and next we will add some validation: ($_POST['submitted']==1) { $errorMsg = ""; // error messages variable if (!empty($_POST['title'])){ // check if title was entered $title = $_POST['title']; } else{ You can see it all working in JSFiddle here.