P
pascal Joseph
To reach their accompte ftp via a page html, I place a form for our
customer on a page. I found this code. But it doesn't work because I
reach the base of the server and not directly the own customer
accompte?? I have to change something on my ftp server or on the html
page?? Thanks. pascal joseph
<html>
<head>
function Login(form) {
var username = form.username.value;
var password = form.password.value;
if (username && password) {
var ftpsite = "ftp://" + username + ":" + password + "@ftp.pcl.ch";
window.location=ftpsite;
}
else {
alert("Merci d'entrer un ID et un mot de passe.");
}
}
</script>
</head>
<body>
<form name="login" method="get" action="#">
Login:<input type=text name="username" size=6>
Mot de passe:<input type=text name="password"
size=6>
<input type=button value="Login!" onClick="Login(this.form)">form>
</body>
</html>
customer on a page. I found this code. But it doesn't work because I
reach the base of the server and not directly the own customer
accompte?? I have to change something on my ftp server or on the html
page?? Thanks. pascal joseph
<html>
<head>
function Login(form) {
var username = form.username.value;
var password = form.password.value;
if (username && password) {
var ftpsite = "ftp://" + username + ":" + password + "@ftp.pcl.ch";
window.location=ftpsite;
}
else {
alert("Merci d'entrer un ID et un mot de passe.");
}
}
</script>
</head>
<body>
<form name="login" method="get" action="#">
Login:<input type=text name="username" size=6>
Mot de passe:<input type=text name="password"
size=6>
<input type=button value="Login!" onClick="Login(this.form)">form>
</body>
</html>