if (array_key_exists("username", $_POST)) { $un = $_POST["username"]; $un = urlencode(str_replace("@", ".", $un)); $url = "ftp://$un@ftp.dasir.net"; header("Location: $url"); die(); } ?>