server problems? passing variable info...

Reply

Join Date: Jun 2006
Posts: 6
Reputation: dcparham is an unknown quantity at this point 
Solved Threads: 0
dcparham dcparham is offline Offline
Newbie Poster

server problems? passing variable info...

 
0
  #1
Jun 29th, 2006
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!!
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 166
Reputation: Lafinboy is an unknown quantity at this point 
Solved Threads: 7
Lafinboy's Avatar
Lafinboy Lafinboy is offline Offline
Junior Poster

Re: server problems? passing variable info...

 
0
  #2
Jun 29th, 2006
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.
If I've been a help please confirm by clicking the Add to Lafinboy's Reputation link in the header of this reply.

Lafinboy Productions
:: Website Design :: Website Development ::

Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 6
Reputation: dcparham is an unknown quantity at this point 
Solved Threads: 0
dcparham dcparham is offline Offline
Newbie Poster

Re: server problems? passing variable info...

 
0
  #3
Oct 19th, 2008
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!!!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC