Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ftp login script

Status
Not open for further replies.

thewebgeek

Technical User
Jan 8, 2001
22
0
0
US
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-&quot;javascript&quot;>
<!--
function enter()
{
user = document.frm.user.value;
pass = document.frm.pwd.value;
window.location = &quot;ftp://&quot;+user+&quot;:&quot;+pass+&quot;@phoenixsoftware.com/pub/&quot;;
}
//-->
</script>
 
hehe... what do you mean when you say IE freaks out? Are you receiving an error? If its a problem with IE putting the extra @ sybmol in the address (url) than you can try using:

pass=document.escape(pass) jared@aauser.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top