authentication - how to pass value of text to "a href" -


I need to help me with the ASP code. I have found a home page in which the user for username and password Logging using the a href attribute and I do not know how pass the value of the text to a href to Login.asp file . Please help me!

Example:

  & lt; Table & gt; & Lt; TR & gt; & Lt; TD & gt; Users & lt; / TD & gt; & Lt; Td> & Lt; Input type = "article" id = "user" /> gt; & Lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; TD & gt; Password & lt; / TD & gt; & Lt; Td> & Lt; Input type = "password" id = "pass" /> gt; & Lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td> & Lt; A href = "login.asp? User = ?????????????? & Gt; Sign in & lt; / A & gt; & Lt; / Td> & Lt; / TR & gt; & Lt; / Table & gt;  

All the usernames and passwords should first be in the text box form element P>

Example

  & lt; Form name = "myForm" id = "myForm" method = "post" action = "login.asp" & gt; & Lt; Input type = "text" name = "username" /> & Lt; Input type = "password" name = "password" /> & Lt; A href = "#" onclic = "document.myForm.submit ()" & gt; Login & lt; / A & gt; & Lt; / Form & gt;  

and you can get value in your .asp page

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

Comments