📄 mod.html
字号:
<html>
<head><title>Modifying A Record</title>
<SCRIPT LANGUAGE=javascript>
function msg1()
{
var a=new RegExp();
var b=new RegExp();
var c=new RegExp();
var d=new RegExp();
var f=new RegExp();
var RE2=new RegExp();
RE2=/(^\d{10}$)/
a=/^([a-z]+)$/i
b=/^([a-z]+)$/i
c=/^\d{1,2}(\-|\/|\.)\d{1,2}\1\d{4}$/i
d=/^([0-9]+)$/i
f=/^([a-z]+[0-9]*[@][a-z]+[.][a-z]+)$/i
if(!a.test(document.d.fn.value)||!a.test(document.d.mn.value)||!a.test(document.d.ln.value)||!c.test(document.d.jd.value)||!a.test(document.d.a.value)||!RE2.test(document.d.m.value)||!f.test(document.d.em.value)||!b.test(document.d.ci.value)||!b.test(document.d.p.value))
{
alert("Please enter correct information.");
if(!a.test(document.d.fn.value))
{
document.d.fn.style.borderColor="red"
}
else
{
document.d.fn.style.borderColor =""
}
if(!a.test(document.d.mn.value))
{
document.d.mn.style.borderColor ="red"
}
else
{
document.d.mn.style.borderColor =""
}
if(!a.test(document.d.ln.value))
{
document.d.ln.style.borderColor="red"
}
else
{
document.d.ln.style.borderColor =""
}
if(!c.test(document.d.jd.value))
{
document.d.jd.style.borderColor="red"
}
else
{
document.d.jd.style.borderColor =""
}
if(!a.test(document.d.a.value))
{
document.d.a.style.borderColor="red"
}
else
{
document.d.a.style.borderColor =""
}
if(!RE2.test(document.d.m.value))
{
document.d.m.style.borderColor="red"
}
else
{
document.d.m.style.borderColor =""
}
if(!f.test(document.d.em.value))
{
document.d.em.style.borderColor="red"
}
else
{
document.d.em.style.borderColor =""
}
if(!b.test(document.d.ci.value))
{
document.d.ci.style.borderColor="red"
}
else
{
document.d.ci.style.borderColor =""
}
if(!b.test(document.d.p.value))
{
document.d.p.style.borderColor="red"
}
else
{
document.d.p.style.borderColor =""
}
return false;
}
else
{
return true;
}
}
</script>
</head>
<body>
<form name=d method=post action=myasp.asp onsubmit="return msg1()">
<center><tr><td><b><font size=3>Customer ID:</font></b></td>
<td><input name="ci"></td></tr></center>
<br><br>
<center><tr><td><b><font size=3>Password:</font></b></td>
<td><input type="password" name="p"></td></tr></center>
<br><br>
<center><tr><td><b><font size=3>First Name:</font></b></td>
<td><input name="fn"></td></tr></center>
<br><br>
<center><tr><td><b><font size=3>Middle Name:</font></b></td>
<td><input name="mn"></td></tr></center>
<br><br>
<center><tr><td><b><font size=3>Last Name:</font></b></td>
<td><input name="ln"></td></tr></center>
<br><br>
<center><tr><td><b><font size=3>Joining Date:</font></b></td>
<td><input name="jd"></td></tr></center>
<br><br>
<center><tr><b><font size=3>Address:</font></b>
<textarea name="a"></textarea></tr></center>
<br><br>
<center><tr><td><b><font size=3>Mobile number:</font></b></td>
<td><input name="m"></td></tr></center>
<br><br>
<center><tr><td><b><font size=3>Altername EMAIL:</font></b></td>
<td><input name="em"></td></tr></center>
<br><br>
<td>
<fieldset><legend>Farmer Feild Info</legend>
<p>
<label for="finfo"><font color="green">Information about Farmer<br>
Farm Feild...</font></label><br>
<select name="fsize" id="finfo">
<option id="half">1/2_Acer</option>
<option id="one">1_Acer</option>
<option id="two">2_Acer</option>
<option id="thr">3_Acer</option>
<option id="fur">4_Acer</option>
<option id="fiv">5_Acer</option>
</select>
</p>
<p>
<label for="firm"><font color="skylovender">Information about Farmer<br>
Farm<font color="red"> Iregation_Mode...</font></font></label><br>
<select name="firr" id="firm"><!--multiple="multiple" size="4"-->
<option id="half">Boaring_pumps</option>
<option id="one">River_Water</option>
<option id="two">Ponds_Water</option>
<option id="thr">Tushar_sinchan</option>
<option id="fur">Rain_Fall</option>
<option id="fiv">Tibak_sinchan</option>
</select>
</p>
</fieldset>
</td>
<br><br>
<center><input name=submit type=submit value="update"></center>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -