runningphan
MIS
I have a form using the following code.
What I need default.asp to do is capture those form inputs and store them in a variable that I can call within a VBScript section of the Remote Desktop Web Connection. I can get the variables to display correctly so I know that they are being passed properly, but they are not being used later on when I call them. Below is a snipit of the code I am using within default.asp.
I apologize in that I am very new to all of this and that this might be a very simple question.
Code:
<form action="default.asp" method="post" name="login">
<input name="User" type="text" size="20"/>
<input name="Pass" type="password" size="20"/>
What I need default.asp to do is capture those form inputs and store them in a variable that I can call within a VBScript section of the Remote Desktop Web Connection. I can get the variables to display correctly so I know that they are being passed properly, but they are not being used later on when I call them. Below is a snipit of the code I am using within default.asp.
Code:
<%@ language="vbscript" %>
<%
'Create Variables for User and Pass from Form
Dim User
Dim Pass
'Read the search form variable.
User = CStr(Request("User"))
Pass = CStr(Request("Pass"))
%>
<script language="vbscript">
sub BtnConnect
MsRdpClient.UserName = User
MsRdpClient.Domain = ""
MsRdpClient.AdvancedSettings.ClearTextPassword= Pass
I apologize in that I am very new to all of this and that this might be a very simple question.