Q:

Design A Page. The Page Must Be Useful For Colleges For Updating Daily Activities And Students Information

belongs to collection: HTML + Javascript Examples

0

Design A Page. The Page Must Be Useful For Colleges For Updating Daily Activities And Students Information with attendance details,marks details, sports details, and upcoming events information. 

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

<html>
<head><title>Subscription Form</title>
<script type="text/javascript">
function validate_required(field, alerttxt)
{
with(field)
{
if (value===null||value==="")
{alert(alerttxt); return false;}
else {return true;}
}
}

function validate_form(thisform)
{
with(thisform)
{
if (validate_required(fname, "First name must be filled out!")===false)
   {fname.foucus(); return false;}
if (validate_required(lname, "Last name must be filled out!")===false)
   {lname.foucus(); return false;}
if (validate_required(password, "Password must be filled out!")===false)
   {password.foucus(); return false;}
if (validate_required(rpassword, "Retype Password must be filled out!")===false)
   {rpassword.foucus();
  return false;}
}
}
</script>
</head>
<body>
<FORM METHOD='GET' ONSUBMIT="return validate_form(this);" ACTION="http://programmingwithbasics.blogspot.in/">
<DIV>First Name:<INPUT TYPE='text' NAME='fname' VALUE='' SIZE=30 placeholder="Ex: Ghanendra " MAXLENGTH=25></DIV><br/>
<DIV>Last Name:<INPUT TYPE='text' NAME='lname' VALUE='' SIZE=30 placeholder="Ex: Yadav " MAXLENGTH=25></DIV><br/> 
<DIV>Password:<INPUT TYPE='password' NAME='password' SIZE=30 MAXLENGTH=25></DIV><br/> 
<DIV>Retype Password:<INPUT TYPE='password' NAME='rpassword' SIZE=30 MAXLENGTH=25></DIV><br/><DIV>Email:<INPUT TYPE='text' NAME='email' VALUE='' SIZE=30 placeholder="Ex: ghanendra.yadav@gmail.com" MAXLENGTH=25></DIV><br/><br/>
<INPUT TYPE='submit' VALUE='Submit'>
<INPUT TYPE='reset' VALUE='Reset'>
</FORM>
</body>
</html>

Output:

First Name:

 

Last Name:

 

Password:

 

Retype Password:

 

Email:



 

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Build A Simple Calculator Using HTML Form Elements... >>