Open your site like gmail.com or fb.com save the page as html only.Now open the saved page in a note pad ans search for action.

| action="https://www.facebook.com/login.php?login_attempt=1" |
You will see something like this.Now we need to replace the
https://www.facebook.com/login.php?login_attempt=1
with your own link.For that copy the below php code and paste it in notepad and save it as something.php and upload it into your server.
now replace https://www.facebook.com/login.php?login_attempt=1 with ur link like http://site.com/urfile.php?email&redirect.com
where email is ue email redirect.com is after victim enter the pass in fake page to which website he needs to redirect.