944,214 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Unsolved
  • Views: 2406
  • ASP RSS
Jun 29th, 2006
0

server problems? passing variable info...

Expand Post »
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!!
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dcparham is offline Offline
7 posts
since Jun 2006
Jun 29th, 2006
0

Re: server problems? passing variable info...

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.
Reputation Points: 16
Solved Threads: 7
Junior Poster
Lafinboy is offline Offline
166 posts
since Jul 2004
Oct 19th, 2008
0

Re: server problems? passing variable info...

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!!!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dcparham is offline Offline
7 posts
since Jun 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: asp form post, form validation, new window
Next Thread in ASP Forum Timeline: Change language of content according to country





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC