folks, trying to pass variable from test1.html to test1.asp.
simplest code possible, even works on our ISP host, but not my web server. please help??

code for test1.html, which calls test1.asp:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>A.html which calls B.asp</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name="form1" action="B.asp" method="post">
<input type="box" name="input1">
<input type="submit" value="submit">
</form>
</body>
</html>
================
calls the following - B.asp:
================
<%@ LANGUAGE=VBScript %>
<%
'Turn On Error Handling
On Error Resume Next
%>
<html>
<head>
<title>B.asp</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<%
var1=request.form("input1")
response.write(var1)
%>
</body>
</html>
======================
works on our ISP's server yet not on my own webserver.
goes to the B.asp but is just white page. any ideas??
server configuration??

thank you!!

Comment out your error handling line in b.asp and you should at least get an error message.
Also in a.html, input type=box is invalid and should be input type=text.

Lafin - thx much for your your response!!; i just tested it - turns out it was the type="text" that works. actually uncommenting the "'Turn On Error Handling
" causes error - forget it. wow i will try to not wait 2 years to reply!! i see the files on my server hadn't been updated since data of the first post. thanks again for your reply!!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.