获取不到正确的值
<!--#include file= "../dbconn2.asp "-->
<!--#include file= "safe.asp "-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN " "http://www.w3.org/TR/html4/loose.dtd ">
<html>
<head>
<meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 ">
<title> 员工档案___修改记录 </title>
<LINK href= "../images/style.css " rel=stylesheet>
<script src= "../inc/common.js?t=20050304 " type= "text/javascript "> </script>
<%
if Chkrequest(request( "id ")) then
id=request( "id ")
else
response.end
end if
sql= "select * from worker where id= "&id& " "
Set rs= conn.execute(sql)
if rs.eof then
response.Redirect( "editworker.asp ")
response.end
else
%>
<script language= "JavaScript ">
<!--
function namosw_goto(url, targetstr)
{
if (url == 'backward ')
history.back(1);
else if (url == 'forward ')
history.forward(1);
else {
if (targetstr == 'blank ') {
window.open(url, 'win1 ');
} else {
var frameobj;
if ((frameobj = eval(targetstr)) != null)
frameobj.location = url;
}
}
}
// -->
</script>
<SCRIPT language=JavaScript>
function setSubjectText(){
if(trim(document.form.worker.value) == " ") {
alert( "请填写员工姓名 ");
document.form.worker.focus();
return false;
}
if(trim(document.form.workid.value) == " ") {
alert( "请先选择部门 ");
document.form.workid.focus();
return false;
}
if(trim(document.form.typeid.value) == " ") {
alert( "请先选择职务 ");
document.form.typeid.focus();
return false;
}
// return true;
document.form.submit()
}
function trim(inputString) {
if (typeof inputString != "string ") { return inputString; }
&nbs