Click to See Complete Forum and Search --> : help! - form info help (i think)


unknown device
06-13-2003, 03:42 PM
i am trying to setup a simple page that will basically work as login infterface for an FTP server. in detail: ive got a html page that has a form that requests for a username and password. i want to be able to pass the entered username and password to a link, so it will fall in the approriate format for IE viewing (http://username:password@ftp.domain.net).

my question is, how do i pass the entered username and password to the url/ftp site in the format described above?
can this be achieved with only html?

thanks in advance!

Khalid Ali
06-13-2003, 04:03 PM
Submit the form and have the action attribute like this

action="http://username:password@ftp.domain.net"

unknown device
06-13-2003, 09:10 PM
Originally posted by Khalid Ali
Submit the form and have the action attribute like this

action="http://username:password@ftp.domain.net"

okay, but what FORM METHOD do i use? is it FORM METHOD=POST or what?

also, how do i get the entered text to place the "username" and "password" into the url?

for instance, if i enter the following:
username: bob
password: lucky

how do i get the "bob" and "lucky" to pass to a url of:

http://bob:lucky@ftp.domain.net

?