læse ikke vist ikke dit sp. helt :) så her er princippet
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!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=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<%
If Trim(Request.Form("Send")) = "Send" then
Response.Write(Trim(Request.Form("mand")))
Response.Write(Trim(Request.Form("kvinde")))
If Trim(Request.Form("mand")) = "1" then
var_mand = "checked"
end if
If Trim(Request.Form("kvinde")) = "0" then
var_kvinde = "checked"
end if
end if
%>
<form name="form1" method="post" action="">
<input type="checkbox" name="mand" value="1" <% Response.Write(var_mand) %>>
<input type="checkbox" name="kvinde" value="0" <% Response.Write(var_kvinde) %>>
<input name="Send" type="submit" value="Send">
</form>
</body>
</html>
og du kan også flytte if sætningen ned i selve formen a la dette
<input type="checkbox" name="mand" value="1" <% IF Trim(Request.Form("mand"))= 1 then Response.Write(var_mand) %>>