Chodzi o ten post ?

<?php
$server = $_POST["server"];
$user = $_POST["user"];
$pass = $_POST["pass"];
$count = 1;
$low = 0;
$mid = 0;
$high = 100000;
$connection = fsockopen($server, 110
, $errno, $errstr, 30
);
if(!$connection) {
print "Connect Failed: $errstr ($errno)"; } else {
$output = fgets($connection, 128
); fputs($connection, "user $usern"); $output = fgets($connection, 128
); fputs($connection, "pass $passn"); $output = fgets($connection, 128
); while($low < $high - 1) {
$mid = floor(($low + $high) / 2
); fputs($connection, "list $midn"); $output = fgets($connection, 128
); $subout = substr($output, 0
, 4
); if($subout == "+OK ") {
$low = $mid;
continue;
}
elseif($subout == "-ERR") {
$high = $mid;
continue;
} else {
break;
print "An error has occurred. Please try again."; }
}
$limit = $mid - 1;
while($count <= $limit) {
fputs($connection, "dele $countn"); $count = $count + 1;
}
fputs($connection, "quitn"); }
print "Successfully removed $limit messages."; ?>
Chce jakos wprowadzic sie do fsockopen(). Np. zrobic przycisk, ktory jak nacisne to zaloguje mnie do forum.