Mentor details

<form action="../mentor-details.php" method="POST" name="mentor_details">Your Name: <input id="mentor_name" name="mentor_name" type="text" /><br />
Your Email: <input id="mentor_email" name="mentor_email" type="text" /><br />
<input type="submit" value="Submit" /></form>
<p><script type="text/javascript">
function form_validation() {
/* Check the mentor Name for blank submission*/
var mentor_name = document.forms["mentor_details"]["mentor_name"].value;
if (mentor_name == "" || mentor_name == null) {
alert("Name field must be filled.");
return false;
<p>/* Check the mentor Email for invalid format */
var mentor_email = document.forms["mentor_details"]["mentor_email"].value;
var at_position = mentor_email.indexOf("@");
var dot_position = mentor_email.lastIndexOf(".");
if (at_position<1 || dot_position<at_position+2 || dot_position+2>=mentor_email.length) {
alert(“Given email address is not valid.");
return false;
online paper writing
cite machine cite generator