tags:

views:

24

answers:

1

Hi all, I need you help me with asp code. I got a home page that contained User Name and Password for user to log in by using a href attribute and i don't know how to pass the value of text to a href to login.asp file. Please help me!

Example:

User Password Log in
A: 

First of all the username and password text box must be inside a form element

e.g.

<form name="myForm" id="myForm" method="post" action="login.asp">
 <input type="text" name="username"/>
 <input type="password" name="password"/>
 <a href="#" onclick="document.myForm.submit()">Login</a>
</form>

and in your .asp page you can get the values as

Request.Form("username")
Request.Form("password")
ajay_whiz