hi using
https://nicepage.com/doc/article/25066/how-to-create-a-simple-html-contact-form-in-nicepage-website-builder
code example 1 ... called file eml2.php
content of the file is
<?php $field_name $field_email $field_textarea $field_textarea-2 $field_textarea-1 specify the message recipient: $mail_to ; $mail_from ; $subject .$field_name; the email content: $body_message .$field_name."\n"; $body_message . .$field_email."\n"; $body_message . .$field_textarea."\n"; $body_message . .$field_textarea-2."\n"; $body_message . .$field_textarea-1; $headers .$mail_from."\r\n"; $headers . .$field_email."\r\n"; $mail_status $subject, $body_message, $headers); show a json message about the successful or unsuccessful sending a message if ($mail_status) { $resarray?> true);
header('Content-Type: application/json');
echo json_encode($resArray);
} else {
$resArray= array('success' => false);
header('Content-Type: application/json');
echo json_encode($resArray);
}
?>
the form can be found here http://order.adcard.xyz ...
I get errors when i submit... can you check my modified file please ... i cannot see ht is wrong an dont know where the php erros are logged...
thanks
george
hi using https://nicepage.com/doc/article/25066/how-to-create-a-simple-html-contact-form-in-nicepage-website-builder code example 1 ... called file eml2.php content of the file is <?php $field_name $field_email $field_textarea $field_textarea-2 $field_textarea-1 specify the message recipient: $mail_to ; $mail_from ; $subject .$field_name; the email content: $body_message .$field_name."\n"; $body_message . .$field_email."\n"; $body_message . .$field_textarea."\n"; $body_message . .$field_textarea-2."\n"; $body_message . .$field_textarea-1; $headers .$mail_from."\r\n"; $headers . .$field_email."\r\n"; $mail_status $subject, $body_message, $headers); show a json message about the successful or unsuccessful sending a message if ($mail_status) { $resarray?> true); header('Content-Type: application/json'); echo json_encode($resArray); } else { $resArray= array('success' => false); header('Content-Type: application/json'); echo json_encode($resArray); } ?> the form can be found here http://order.adcard.xyz ... I get errors when i submit... can you check my modified file please ... i cannot see ht is wrong an dont know where the php erros are logged... thanks george