截图:
关键代码:
function ChkFields() {
if (document.formadd.name.value=='') {
window.alert ("请输入姓名!");
formadd.name.focus();
return false
}
if (document.formadd.Subject.value=='') {
window.alert ("请输入主题!");
formadd.Subject.focus();
return false
}
if (document.formadd.Subject.value.length>50) {
window.alert ("主题超长!");
formadd.Subject.focus();
return false
}
if (document.formadd.Words.value.length>1000) {
window.alert ("留言内容超长!");
formadd.Words.focus();
return false
}
return true
}
添加新留言添加新留言(*为必填项)
// 获取上级留言的编号
$UpperId = (int)$_GET['UpperId'];
?>
您的姓名* | |
电子邮件 | |
主页地址 | |
留言标题* | |
具体内容* | |
请选择头像 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 function showlogo(){ document.images.img.src = "images/" + document.formadd.logo.options[document.formadd.logo.selectedIndex].value + ".gif"; } |