Buid an Hiperlink with form fields?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, I want to know if is possible to make an hiperlink with form fields,
something like:

I make a form in Frontpage with 2 fields

Username: javier
Password: xyz

Then with this 2 parameters build an access link to a FTP site like:
ftp://javier:[email protected], and when I click Send, access this site.

I think is very simple, but I don't know how I can do it.

Best Regards,

Javier Salvatierra
 
Hi,
Try this, not tested.
<form>
Username <input type="text" name="user">
Password <input type="text" name="pass">
<input type="submit" value="Go to FTP" onclick="location.href='ftp://' +
this.form.user.value + ':' + this.form.pass.value + '@mydomain.com';">
</form>
 
Back
Top