Hello,
I am new to javascript and am trying to create a custom log in for my ftp site. Im trying to make a form with two fields, username and password, then create a dynamic link attached to the submit button that would utilize the browser's FTP client to log them in to the FTP site. The link should look like this:
"ftp://[username]:[password]@domainName.com" where [username] would be the text entered in the username field and [password] the text from the password field.
Here is how it looks now:
Can anyone help me please???Code:<p><form name="f" onsubmit="MM_openBrWindow"> Username: <input name="u" type="text"/> <br/> Password: <input name="p" type="password"/> <input type="button" onClick="MM_openBrWindow('ftp://')" value="login"/> </form></p> <script type=text/javascript> --> var user = document.f.u.value+("@exponentialintelligence.net"); var pass = document.f.p.value; function MM_openBrWindow(theURL) { //v2.0 window.open(theURL+var user+":"+var pass+("@exponentialintelligence.net"); } //--> </script>



Reply With Quote
assword@ftp.domainName.com
Bookmarks