The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Contact Post not displaying information Re: Contact Post not displaying information


So this is the form I have so far.. I uploaded it and it still doesn’t seem to be working.

And I did change the Method to post.

Clear      Send

This is the PHP file that I have so far..

# only if the form was submitted
if( !empty($_POST) ){

# get submitted name
$name = empty( $_POST )?
‘no name submitted’:

# get submitted email
$email = empty( $_POST )?
‘no email submitted’:

# get submitted message
$message = empty( $_POST )?
‘no message submitted’:
wordwrap( $_POST,70 );

# send email to:
$to = ‘[email protected]’;

# prepare email subject
$subject = ‘Someone submitted your form!’;

# prepare email body
$body = <<< TEXT
Name: $name
Email: $email


# prepare email headers
# the email IS NOT “from” the user, it’s from your website.
# saying it’s “from” the user will get it caught by spam traps.
$headers = “From: [email protected]”;

# send email
if( mail( $to,$subject,$message,$headers ) ){
print ‘Thanks for sending your message!’;
print ‘There was a problem – please try again.’;