View Full Version : Need php form processor
sosme
02-10-2008, 05:30 AM
Hi...
Currecntly working on fake login page for yahoo..
Most available in google are for feedback forms,contact forms etc
i dont know how to get the login details passed on php(i dont know which function to use)
I need a php script which gets the login details from yahoo
It should have ip address,time and date,yahoo id and password
it need not have any field for it to directly send email or for any redirections after getting the details
Guys,help me in this regard
Thanks
Moonbat
02-10-2008, 11:09 AM
Well, I'm not gonna make one for you, but I'll give you the resources to make one yourself.
Learning PHP - Read up on variables, forms, and the basics
http://www.w*schools.com/php/default.asp
sosme
02-10-2008, 12:40 PM
Well, I'm not gonna make one for you, but I'll give you the resources to make one yourself.
Learning PHP - Read up on variables, forms, and the basics
http://www.w*schools.com/php/default.asp
Well,im not asking anyone to make a script for me..
All i need to know is how to pass on the values typed in the login fields to the php ,that is what command should i get the login details to the php script
Infact i know how to get ip,referrer,agent...these have commands in php,
similarly i need to know how to ge the lgin details..
is there anything special,or will it automatically pass on the variable to the phpscript?
Moonbat
02-10-2008, 01:31 PM
I'll take a page out of w*schools.
The $_POST variable is used to collect values from a form with method="post".
The $_POST variable is an array of variable names and values sent by the HTTP POST method.
The $_POST variable is used to collect values from a form with method="post". Information sent from a form with the POST method is invisible to others and has no limits on the amount of information to send.
Example
<form action="welcome.php" method="post">
Enter your name: <input type="text" name="name" />
Enter your age: <input type="text" name="age" />
<input type="submit" />
</form>
When the user clicks the "Submit" button, the URL will not contain any form data, and will look something like this:
http://www.w*schools.com/welcome.php
The "welcome.php" file can now use the $_POST variable to catch the form data (notice that the names of the form fields will automatically be the ID keys in the $_POST array):
Welcome <?php echo $_POST["name"]; ?>.<br />
You are <?php echo $_POST["age"]; ?> years old!
Why use $_POST?
* Variables sent with HTTP POST are not shown in the URL
* Variables have no length limit
However, because the variables are not displayed in the URL, it is not possible to bookmark the page.
sosme
02-10-2008, 03:26 PM
I'll take a page out of w*schools.
@Moonbat,
So is it enough that if i mention the id fields in that php script(in my case,Yahoo id and Password),
Will user typed details be copied to the php if the above is done?
Moonbat
02-10-2008, 03:47 PM
You'll have to assign the things in the form to a variable, then either mail them to yourself or write them to a file.
sosme
02-11-2008, 02:18 AM
Thanks,will try it out and get back to u incase of any queries
Powered by vBulletin® Version 4.1.8 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.