I have a contact form in my site...when i send message through it the headers are not displayed...rest everything is displayed.and i want to set required field for email and address and show error message when not filled out...please give some idea i am new to it
Contact form is not showing headers
Started on the old forum in November 2013 · view the original in the archive · old links redirect here
Attachments:
send-mail.php
I would try adding:
$headers .= 'X-Mailer: PHP/' . phpversion();
to your existing headers
something else wrote: I would try adding:
$headers .= 'X-Mailer: PHP/' . phpversion();to your existing headers
that isnt working...
Added after 29 minutes:
Can you please give me a contact form that has required fields and secure...
arnage wrote: Form:
echo '<input type="text" name="your_email" value="' . $youremail . '"/>';Check:
$your_email = !empty($_POST['your_email']) ? $_POST['your_email'] : null; if (isset($your_email)) { // continue.. }
and where can i put error message to be displayed
Try turning on php error messages to see if the headers parameter has been disabled by the host.