...

View Full Version : How to auto login into a device using?



Jon Snow
02-03-2005, 04:57 PM
Hi all

I am trying to find a way to autologin into my access point.

Currently I have created this code but it never works the first time I load
the page.
ALL subsequent loads or reloads work fine. One actually has to reboot the
access point again to get the problem again and then again only once. This is really a annoying problem.

<HTML>
<BODY onLoad="document.mainForm.submit()">
<FORM METHOD="POST" NAME=mainForm ACTION="http://10.0.1.4/login.html">
<INPUT TYPE=HIDDEN NAME=TAG4 VALUE=root>
<INPUT type=HIDDEN name=TAG1 VALUE=>
</FORM>
</BODY>
</HTML>

Anyone out there with a solution or maybe another way of autologin in !!!!!

Thanks

chilipie
02-03-2005, 05:06 PM
Welcome to CF :) .



<html>

<head>
<title>Auto Redirection</title>
</head>

<body onLoad="document.mainForm.submit()">

<form method="POST" name="mainForm action="http://10.0.1.4/login.html">
<input type="hidden" name="TAG4" value="root">
<input type="hidden" name="TAG1" value="">
</form>

</body>

</html>

That might work, not really sure...

What happens if the user doesn't have JS enabled though? If you're just trying to redirect them, PHP would be a much better way to go.

Jon Snow
02-04-2005, 08:47 AM
Hi chilipie

yea it does work. I will thou give your PHP recommendation a try.

Thanks



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum