Hardcode username and password to a hyperlink

A

agriman1969

I was wondering what the commands were to autofill the username and password
on a hyperlinked website. I would prefer that the fields fill in and login
when the button is selected. Can anyone help?
 
D

David Berry

This isn't a good security practice since the user name and password would
be visible in the URL (making it vulnerable) but if this was an ASP page you
could create a querystring that had them in it and then populate the form
with the values. Ex:

http://www.mysite.com/login.asp?username=guest& password=guest

Then on the form you'd do:

username = request.querystring("username")
password = request.querystring("password")

<input type="text" name="Username" size="20" value="<%=username%>">
<input type="text" name="Password" size="20" value="<%=password%>">
 
M

Mike Mueller

This is going to vary by the remote page and how it
authenticates the users.




in message
:I was wondering what the commands were to autofill the
username and password
: on a hyperlinked website. I would prefer that the fields
fill in and login
: when the button is selected. Can anyone help?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top