help! - form info help (i think)

liunx

Guest
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 (<!-- m --><a class="postlink" href="http://username:p[email protected]">http://username:p[email protected]</a><!-- m -->).<br />
<br />
my question is, how do i pass the entered username and password to the url/ftp site in the format described above?<br />
can this be achieved with only html?<br />
<br />
thanks in advance!<!--content-->Submit the form and have the action attribute like this<br />
<br />
action="http://username:p[email protected]"<!--content-->Originally posted by Khalid Ali <br />
Submit the form and have the action attribute like this<br />
<br />
action="http://username:p[email protected]" <br />
<br />
okay, but what FORM METHOD do i use? is it FORM METHOD=POST or what?<br />
<br />
also, how do i get the entered text to place the "username" and "password" into the url?<br />
<br />
for instance, if i enter the following:<br />
username: bob<br />
password: lucky<br />
<br />
how do i get the "bob" and "lucky" to pass to a url of:<br />
<br />
<!-- m --><a class="postlink" href="http://bob:[email protected]">http://bob:[email protected]</a><!-- m --><br />
<br />
?<!--content-->
 
Back
Top