i have a problen with mail function php and i want to help me.
I have a create html form, with some fields examples "firstname,lastname,tel,address.....".
The fields is about 60.
I use this php code for send data where typing the user inside the field to mail@gmail.com.
The mail send regularly without error and data send regularly in the mail.
That become only first 50 fields.From there and down do not save data inside the variable and i cannot data in mailbox.
I have see html and php code and i am sure that do not syntax error examples "'',;;...{}[]()".
This is my phhcode
- Code: Select all
<?php
if(isset($_POST['submit'])) {
$to = "mail@gmail.com";
$subject = "SendMail";
$name_field = $_POST['FirstName'];
$name1_field = $_POST['LastName'];
//.........
//........
//.......
//Until variable $name50_field data save inside the variable
//From there and down do not save
//.....
//....
//...
$email_field = $_POST['email'];
$message = $_POST['message'];
foreach($_POST['check'] as $value) {
$check_msg .= "Checked: $value\n";
}
$body = "From: $name_field\n E-Mail: $email_field\n $check_msg Message:\n $message\n FirstName: $name_field\n LastName: $name1_field\n";
echo "The mail has been send succesfully $to!";
header("Refresh: 3; url=\"http://www.mydomain.com\"");
mail($to, $subject, $body);
} else {
echo "error";
}
?>
Is there other way to send much data to mailbox with html form and php code?
Thanks you, and sorry for my bad english.

