Redirectare printr-un buton
Redirectare printr-un buton
Vreau sa fac sus un buton care sa redirecteze userii spre un server FTP. Se poate?
- mefisto
- Utilizator înregistrat
- Mesaje: 318
- Membru din: 16-Ian-2005, 00:34:33
- Ext: Nu
- Server: Windows
- Nivel phpBB: Mediu
- Nivel php: Mediu
- Localitate: Pe scaun
- Contact:
da e un script java FTPlogin
Sper sa te ajute in ceea ce cautai tu.
Cod: Selectaţi tot
<center>
<form name=login>
<table width=250 border=1 cellpadding=3><tr>
<td colspan=2 align=center>
<b><h2>Logon to FTP Server!</h2></b>
</td>
</tr><tr><td>Username:</td><td>
<input type=text name=username size=20>
</td></tr><tr><td>Password:</td><td>
<input type=password name=password size=20>
</td></tr><tr><td>Server:</td><td><tt>ftp://</tt>
<input type=text name=server size=14>
</td></tr><tr>
<td colspan=2 align=center>
<input type=button value="Login!" onClick="Login(this.form)">
</td></tr></table></form>
</center>
<SCRIPT LANGUAGE="JavaScript">
//submitted and displayed on www.a1javascripts.com
//by Spencer Ressad. http://www.fl5goscript2001.homestead.com
<!-- Begin
function Login(form) {
var username = form.username.value;var password = form.password.value;
var server = form.server.value;
if (username && password && server) {
var ftpsite = "ftp://" + username + ":" + password + "@" + server;
window.location = ftpsite;
}
else {alert("Please enter your username, password, and FTP server's address.");
}
}
// End -->
</script>
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 1 vizitator