thewebgeek
Technical User
my company wants a login page for our ftp site. Some people will login as anonymous and use their email address as the password, and others will have an actual password that enables them to have more access than anonymous users.
I have tried a login page that asks for the user ID and password, and for some reason Internet explorer freaks out when anonymous users submit email addresses as their passwords. I think the "@" symbol in the email address is causing the problem.
So, then I removed the text field that asks for the password. When I do that, Netscape prompts the user for the password, but Internet Explorer does not, and assumes you are an anonymous user. Any ideas? Below is the code I am using.
<script language-"javascript">
<!--
function enter()
{
user = document.frm.user.value;
pass = document.frm.pwd.value;
window.location = "ftp://";+user+":"+pass+"@phoenixsoftware.com/pub/";
}
//-->
</script>
By the way, pass=document.escape(pass), In the immortal words of Ricky Ricardo,dun't work.
I have tried a login page that asks for the user ID and password, and for some reason Internet explorer freaks out when anonymous users submit email addresses as their passwords. I think the "@" symbol in the email address is causing the problem.
So, then I removed the text field that asks for the password. When I do that, Netscape prompts the user for the password, but Internet Explorer does not, and assumes you are an anonymous user. Any ideas? Below is the code I am using.
<script language-"javascript">
<!--
function enter()
{
user = document.frm.user.value;
pass = document.frm.pwd.value;
window.location = "ftp://";+user+":"+pass+"@phoenixsoftware.com/pub/";
}
//-->
</script>
By the way, pass=document.escape(pass), In the immortal words of Ricky Ricardo,dun't work.