一个HTML网页,选择一些信息后提交,然后再把提交的信息显示出来,怎么处理?下面是html的代码和ASP的代码
-------------test.html-----------------
<html>
<body>
<form method ="post" action ="test.asp">
input name:<input name ="usr_name"type="text"><br/>
input age:<input name ="usr_psw"type="text"><br/>
gender:male<input value="1" name ="usr_gender"type="radio"><br>
femalle<input value="2" name ="usr_gender"type="radio"><br>
course:Chinese<input type="checkbox" name=ck1 value="Chinese">
English<input type="checkbox" name=ck2 value="English">
Japanes<input type="checkbox" name=ck3 value="Jepanese">
edu: <select name="edu">
<option >high school</option>
<option >bA</option>
<option >maste1</option>
</select><br/>
<input type =submit value="submit">
<input type =reset value="reset">
</form>
</html>
</body>
-------------------test.asp--------------------
usr_name:
<%=request.form("usr_name")%>
<br>
gender:
<%=request.form("usr_gender")%>
course:
<%
courses=" "
if request.form("ck1")<>" " then
courses=courses&request.form("ck1")
end if
if request.form("ck2")<>" " then
courses=courses&request.form("ck2")
end if
if request.form("ck3")<>" " then
courses=courses&request.form("ck3")
end if
response.write courses %> <br>
edu:<%=request.form("edu")%>
运行通过!
-----------------------------------
呵呵,放松,一切都会好起来的!