Click to See Complete Forum and Search --> : ftp login from webpage


rawkman
02-24-2006, 10:20 AM
I'm trying to create an IE friendly ftp login page. There are 3 text boxes (username, password, ftp site) and there's a javascript function on submit that builds the ftp url like this:

ftp://username:password@domain.com

The only issue I'm running into is that the ftp accounts that my host creates have the "@" symbol in them so I think IE is getting confused as the string ends up being:

ftp://whatever@domain.com:password@whatever.com

I keep getting errors that the domain could not be found. Now I can just goto ftp.whatever.com and choose "login as" and that works fine, but the client wants it web based and will not accept this workaround or use firefox or use an FTP client.

Is there any creative way around this?

Kravvitz
02-24-2006, 11:27 AM
Can you urlencode the @? The '@' would become '%40'.

rawkman
02-24-2006, 11:43 AM
awesome, works perfectly. Thanks.