<form name="LoginForm" id="LoginForm" action="index.php" method="post"><input type="hidden" id="ftpserver" name="ftpserver" value="ftp.mydomain.com" /><input type="hidden" id="ftpserverport" name="ftpserverport" value="21" /><input type="hidden" id="username" name="username" value="putusernamehere" /><input type="hidden" id="password" name="password" value="putpasswordhere" /><input type="hidden" id="directory" name="directory" value="/" /><input type="hidden" id="language" name="language" value="en" /><input type="hidden" id="skin" name="skin" value="blue" /><input type="hidden" id="ftpmode" name="ftpmode" value="automatic" /><input type="hidden" name="sslconnect" value="yes" /><input type="hidden" id="passivemode" name="passivemode" value="yes" /><input type="hidden" id="action" name="action" value="sendHttpHeaders" /><input type="hidden" name="state" value="browse" /><input type="hidden" name="state2" value="main" /><input type="submit" value="Login" title="Login (accesskey l)" accesskey="l" /></form>
<?php$INFO['ftpserver'] = 'nome server';$INFO['ftpserverport'] = 'porta';ecc ecc ecc :P?>
<?phprequire "conf.php";$ftpserv= $INFO['ftpserver']; $ftpserverport= $INFO['ftpserverport']; ecc ecc :P?>
<input type="hidden" id="ftpserver" name="ftpserver" value=<? $ftpserv ?> > /><input type="hidden" id="ftpserverport" name="ftpserverport" value=<? $ftpservport ?>> />ecc ecc ecc :P
<?phpdefine('_username','pippo');define('_password','pluto');etc..?>
include ('config.php');
ftp_login($conn_id, $_POST['username'], $_POST['password']);
ftp_login($conn_id, _username, _password);