PDA

View Full Version : Remember My Username and Password


RollaJ
09-15-2005, 08:04 AM
There is a site I frequent that doesnt ask If I want to save my log-in info, how can I get it to do so?..... seems like the only site that doesnt offer it

flatline
09-15-2005, 08:24 AM
Firefox should be able to do it for you.

TheTROLL
09-15-2005, 08:35 AM
And if that's not an option, make a local copy of the login page and edit the HTML to pre-populate the username and password. You may also have to edit the form action URL to include the http://www.***.com prefix if it currently just action="/page.php".

RollaJ
09-15-2005, 11:31 AM
[ QUOTE ]
Firefox should be able to do it for you.

[/ QUOTE ]

Site is not firefox compatible.... Im gonna try the other suggestion, though Im not sure what it means /images/graemlins/tongue.gif

RollaJ
09-15-2005, 11:34 AM
[ QUOTE ]
And if that's not an option, make a local copy of the login page and edit the HTML to pre-populate the username and password. You may also have to edit the form action URL to include the http://www.***.com prefix if it currently just action="/page.php".

[/ QUOTE ]

Im lost /images/graemlins/frown.gif

TheTROLL
09-15-2005, 12:24 PM
Open the page where you would log in.

Let's take this (http://forumserver.twoplustwo.com/login.php?Cat=) fine site as an example.

Make a note of the exact text that appears by the username box, in this case "Login Name".

File menu/Save As...

Change the Save As Type dropdown to Web Page, HTML only.

Save it to your desktop.

In Notepad, open the file you've saved. Hit CTRL+F and search for Login Name.

Right around there you'll find the code that represents the box where you type in your username. In this case, it is:

<input type="text" name = "Loginname" class="formboxes" />

Right after the name="Loginname" part, add value="thetroll" (substituting your username for the relevant site), so it reads

<input type="text" name = "Loginname" value="thetroll" class="formboxes" />

Do the same for the password box, adding in value="yourpwd" (substituting your password for the relevant site).

Save the changes and close notepad.

Drag and drop the file onto Internet Explorer, and you'll see a non-graphics version of the login page with your name and password already there. Save this page in your Favorites instead of the real homepage.

Click the submit button, and see if that works - it does for 2+2.

If it does not, you'll also need to tell the form which site to submit the details to. Back in Notepad, a bit above where you added your username, you'll find a FORM tag, looking something like this:

<form method="post" action="start_page.php">

You need to edit that action attrbiute to be the FULL address of the login script. This is usually just a matter of adding the base URL to the front, so this example becomes

<form method="post" action="http://forumserver.twoplustwo.com/start_page.php">

Save the file and try again. This will work in the majority of cases; if not, post the URL of the original login page (blank out the domain name if you like) and the whole FORM tag and I'll tell you what the revised version should be.

In the next installment... how to make the page click the submit button automatically!

RollaJ
09-15-2005, 01:20 PM
I PMd you, thanks a lot for the help