This is an odd one. I have a group of users who all need to sign onto site X each with a unique password. Site X has a simple form with a password field and submit button. The submit method is POST and the action takes it to an ASP page (apologies if this is the wrong forum).
In order to save my users a little time, I built a page on my domain (which is not site X) that mimics that form, automatically fills in the person's unique password, and submits it. Therefore, each user can get automatically signed into their account on site X based on a single link click that first opens a page on my domain. Sounds weird, I'm sure.
Now, this little technique works fine in Firefox and Safari. However, IE doesn't seem to work with it. The password will be filled in, and the form will be submitted, but the page that gets returned is the login screen on domain X itself. With the browsers that work, the returned page is the logged in user dashboard. This is very odd to me, as I would have thought that it was all back-end ASP validation, and it would have nothing to do with the browser. Form code is below, if anyone is interested. Any ideas why ASP would react differently to IE and work fine for everything else on simple form submission?
In order to save my users a little time, I built a page on my domain (which is not site X) that mimics that form, automatically fills in the person's unique password, and submits it. Therefore, each user can get automatically signed into their account on site X based on a single link click that first opens a page on my domain. Sounds weird, I'm sure.
Now, this little technique works fine in Firefox and Safari. However, IE doesn't seem to work with it. The password will be filled in, and the form will be submitted, but the page that gets returned is the login screen on domain X itself. With the browsers that work, the returned page is the logged in user dashboard. This is very odd to me, as I would have thought that it was all back-end ASP validation, and it would have nothing to do with the browser. Form code is below, if anyone is interested. Any ideas why ASP would react differently to IE and work fine for everything else on simple form submission?
Code:
<body onLoad="document.form1.password.value='<?php echo $_GET["password"] ?>';document.form1.submit();"> <!-- the GET above pulls info from the link, via PHP. the HTML output is correct after this is done --> <form NAME="form1" METHOD="POST" ACTION="http://www.siteX.com/submitpage.asp?user_id=<?php echo $_GET["user_id"] ?>"> <!-- the GET above pulls info from the link, via PHP. the HTML output is correct after this is done --> <input TYPE="HIDDEN" NAME="Validate" VALUE="1"> Password: <input TYPE="password" NAME="password" id="password" SIZE="20"><br><br> <input type="submit" value="Submit" name="submit1">
Comment