Hello guys. I'm back with some more problems. I have this form, when some data is entered it is supposed to mail me the details. But in my case it does mail me the details, but its different everytime. E.g. I have 10 fields, it mails me 5 and at times 6, but not all. Here is the script see if anyone could help me out.
http://www.bluesurf.net/sample/registration/register.htm (this is the link where u enter the details, and all the details should be mailed, I have specified the address in the php file). Ok here is the code:
$youremail="email@yahoo.com , aliadeelb@yahoo.com"; // This is the address that the information submitted will be sent to.
$emailsubject="Registration Form"; // This will the email's subject
// The From field will be be where this email came from.
// Note on the from field. the text after the first " mark, until the < is what appears in "From" in your email program.
// So, you can put anything alpha numeric here. That would be any letters A-Z and a-z, as well as 0-9
$from_who="From BlueSurf! <info@bluesurf.net>";
$pagetitle="From the BlueSurf Team!"; // Title to be displayed on the sent info page.
// Enter the code that you want to appear before the information submitted.
// Make sure you put a / mark before all double quotation marks or the script won't work.
// the \n at the end of the line is to create a new line in the HTML SOURCE. It DOES NOT create a break or new line
// when viewing it on the internet. Put these at the end of each line in the header and footer if you wish.
// They aren't required.
$header = "<!-- Begin Header -->\n
<table>\n
<tr>\n
<td bgcolor=\"000000\"><font color=\"FFFFFF\" size=\"2\" face=\"verdana\">\n
<!-- End Header -->\n";
// Enter the code you'd like displayed after the information submitted.
// Make sure you put a / mark before all double quotation marks or the script won't work.
// the \n at the end of the line is to create a new line in the HTML SOURCE. It DOES NOT create a break or new line
// when viewing it on the internet. Put these at the end of each line in the header and footer if you wish.
// They aren't required.
$footer = "<!-- Begin Footer -->\n
</td></tr></table>\n
<!-- End Footer -->\n";
// This code gets the ip address of the person submiting the form.
// You shouldn't remove it if you want to use this feature.
if (getenv(HTTP_CLIENT_IP)){
$user_ip=getenv(HTTP_CLIENT_IP);
}
else {
$user_ip=getenv(REMOTE_ADDR);
}
// If your server uses php version 4.2 or above, you can leave this section alone.
// Otherwise, add 2 slashes (//) to the beginning of the following 4 lines and delete the // in the section below.
$messenger1 = $_POST['messenger1'];
$messenger2 = $_POST['messenger2'];
$messenger3 = $_POST['messenger3'];
$textfield1 = $_POST['textfield1'];
$textfield2 = $_POST['textfield2'];
$textfield3 = $_POST['textfield3'];
$login = $_POST['login'];
$password = $_POST['password'];
$retype = $_POST['retype'];
$firstname = $_POST['firstname'];
$age = $_POST['age'];
$nationality = $_POST['nationality'];
$sex = $_POST['sex'];
//$bluetooth = $_POST['bluetooth'];
$type = $_POST['type'];
$mobile = $_POST['mobile'];
$pda = $_POST['pda'];
$laptop = $_POST['laptop'];
//$email = $_POST['email'];
//$telno = $_POST['telno'];
//$comments = $_POST['comments'];
//$firstname = $HTTP_POST_VARS['firstname'];
//$email = $HTTP_POST_VARS['email'];
//$url = $HTTP_POST_VARS['url'];
//$comments = $HTTP_POST_VARS['url'];
// Edit the following lines to customize how the email sent to you will look.
// To add more fields, just copy and paste the line, and edit the info between the " marks.
// The last 2 lines will send the users browser information and their ip number with the mail.
// Just in case. 
$mailbody="Senders Messsenger1:\n=================\n$messenger1\n\n";
$mailbody="Senders Messsenger2:\n=================\n$messenger2\n\n";
$mailbody="Senders Messsenger3:\n=================\n$messenger3\n\n";
$mailbody="Senders User1:\n=================\n$textfield1\n\n";
$mailbody="Senders User2:\n=================\n$textfield2\n\n";
$mailbody="Senders User3:\n=================\n$textfield3\n\n";
$mailbody="Senders Name:\n=================\n$firstname\n\n";
$mailbody.="Senders Age:\n=================\n$age\n\n";
$mailbody.="Senders Nationality:\n=================\n$nationality\n\n";
$mailbody.="Senders Sex:\n=================\n$sex\n\n";
$mailbody="Senders Login:\n=================\n$login\n\n";
$mailbody="Senders Password:\n=================\n$password\n\n";
$mailbody="Senders Retyped Password:\n=================\n$retype\n\n";
//$mailbody.="Senders Bluetooth Ownsership:\n=================\n$bluetooth\n\n";
$mailbody.="Senders Type:\n=================\n$type\n\n";
$mailbody.="Senders Mobile:\n=================\n$mobile\n\n";
$mailbody.="Senders PDA:\n=================\n$pda\n\n";
$mailbody.="Senders Laptop:\n=================\n$laptop\n\n";
//$mailbody.="Senders E-mail:\n=================\n$email\n\n";
//$mailbody.="Senders Tel No:\n=================\n$telno\n\n";
//$mailbody.="Senders Comments:\n=================\n$comments\n\n";
$mailbody.="Senders Browser:\n=================\n$HTTP_USER_AGENT\n\n";
$mailbody.="Senders IP Number:\n=================\n$user_ip\n\n";
mail("$youremail", "$emailsubject", "$mailbody", "From: $from_who"); // Send the email.
$comments = nl2br($comments);// Page HTML comes next.
?>
<html>
<head>
<title><?php $pagetitle ?></title>
<style type="text/css">
<!--
.style4 {
font-size: 10px;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
.style5 {
font-size: 11px;
font-weight: bold;
color: #4F7BBD;
}
.style7 {color: #FF9900}
.style9 {
color: #FF9900;
font-weight: bold;
}
.style10 {font-size: 11px}
.style11 {color: #FFFFFF}
.style12 {color: #000000}
.style13 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 16px;
font-weight: bold;
color: #4F7BBD;
}
.style15 {color: #4F7BBD; font-size: 11px;}
.style16 {color: #990000}
.style17 {
font-size: 12px;
font-weight: bold;
color: #990000;
}
.style18 {font-size: 10px}
.style19 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
}
.style21 {font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; }
.style22 {
color: #4F7BBD;
font-weight: bold;
}
.style23 {color: #990000; font-size: 12px;}
-->
</style>
</head>
<body>
<table width="100%" border="0">
<tr>
<td><div align="left"><img src="images/download_button.gif" width="64" height="58"></div></td>
</tr>
<tr>
<td><div align="center"><span class="style13"> Coming Soon ! </span></div></td>
</tr>
<tr>
<td><p class="style4"> <span class="style15"><span class="style16">Bluesurf networks is in it's final deployment phase to bringing to market all it's services. We have noted your preferences and will inform you as soon as the messengers are available for download.<br>
<br>
We thank you for your business.</span></span><span class="style5"><br>
<br>
Download bluesurf.net for my PC(FREE)</span><span class="style11">..</span>--- You need to download this to make use of bluesurf networks --- <br>
<span class="style7"><strong>Windows<br>
Mac</strong><br>
<span class="style10"><br>
</span></span> <span class="style5"><br>
Download bluesurf.net for my device</span> --- This will download your selected messenger to your PC and you can transfer the file to your device via <br>
<span class="style11">..................................................................</span><span class="style12">active sync, Infra-Red Bluetooth, Data-cable, etc</span><span class="style9"> <span class="style12">---</span> <br>
<br>
MSN BLUESURF (Value)<br>
Yahoo BLUESURF (Value)<br>
AOL BLUESURF (Value)</span></p>
<p class="style4"> </p>
<p class="style4"><span class="style16">You can contact us for futher information: email:</span> <a href="mailto:%20info@bluesurf.net">
info@bluesurf.net</a><br>
<span class="style17"><span class="style11">...............................................................</span></span><span class="style23"><span class="style18">Tel: 97150 6789041</span></span></p></td>
</tr>
<tr>
<td><div align="center"></div></td>
</tr>
<tr>
<td><div align="left"><img src="images/corp.jpg" width="64" height="58"> <span class="style21"><span class="style22">ALSO COMING SOON </span>- CORPORATE BLUESURF WILL ALLOW YOU TO ACCESS YOUR COMPANY'S DATABASE </span></div></td>
</tr>
<tr>
<td><div align="center"><span class="style19"><a href="../index.htm">Continue Surfing >>></a> </span></div></td>
</tr>
</table>
</body>
</html>
SOMEONE HELP ME PLEASEEEEEEEEE!!!!!!