Menu icon Foundation

My Posts


My Comments

Jen PC commented on Jen PC's post over 5 years

PHP code is here (Foundation forum somehow would not allow me to post the entire thing):

<?php
$contact_fname = $_POST['f_name'];
$contact_lname = $_POST['l_name'];
$contact_tel = $_POST['phone'];
$contact_email = $_POST['email'];
$contact_website = $_POST['website'];
$message_type = $_POST['message_type'];
$contact_message = $_POST['message'];
$email_signup = $_POST['yes'];

if( $contact_fname == true )
{
$sender = $contact_email;
$receiver = "[email protected]";
$client_ip = $_SERVER['REMOTE_ADDR'];
$email_body = "First Name: $contact_fname \nLast Name: $contact_lname \nPhone: $contact_tel \nEmail: $sender \nWebsite: $contact_website \nSubject: $message_type \nMessage: $contact_message \nSign Up for Email: $email_signup \nIP: $client_ip ";

$extra = "From: $sender\r\n" . "Reply-To: $sender \r\n" . "X-Mailer: PHP/" . phpversion();

}

if(isset($_POST['message_type']) )
{
$_POST['message_type'];

}

if(isset($_POST['yes']))
{
$_POST['yes'];
}

if( mail( $receiver, "Website Visitor Contact - $subject", $email_body, $extra ) )
{
echo "Your Message Has Been Submitted! You will be redirected.";
}
else
{
echo "Sorry. Your Message Could Not Be Sent. Please try again later.";
}
echo "";

?>

Posts Followed

No Content

Following

    No Content

Followers

My Posts

My Comments

You commented on Jen PC's post over 5 years

PHP code is here (Foundation forum somehow would not allow me to post the entire thing):

<?php
$contact_fname = $_POST['f_name'];
$contact_lname = $_POST['l_name'];
$contact_tel = $_POST['phone'];
$contact_email = $_POST['email'];
$contact_website = $_POST['website'];
$message_type = $_POST['message_type'];
$contact_message = $_POST['message'];
$email_signup = $_POST['yes'];

if( $contact_fname == true )
{
$sender = $contact_email;
$receiver = "[email protected]";
$client_ip = $_SERVER['REMOTE_ADDR'];
$email_body = "First Name: $contact_fname \nLast Name: $contact_lname \nPhone: $contact_tel \nEmail: $sender \nWebsite: $contact_website \nSubject: $message_type \nMessage: $contact_message \nSign Up for Email: $email_signup \nIP: $client_ip ";

$extra = "From: $sender\r\n" . "Reply-To: $sender \r\n" . "X-Mailer: PHP/" . phpversion();

}

if(isset($_POST['message_type']) )
{
$_POST['message_type'];

}

if(isset($_POST['yes']))
{
$_POST['yes'];
}

if( mail( $receiver, "Website Visitor Contact - $subject", $email_body, $extra ) )
{
echo "Your Message Has Been Submitted! You will be redirected.";
}
else
{
echo "Sorry. Your Message Could Not Be Sent. Please try again later.";
}
echo "";

?>

Posts Followed

No Content

Following

  • No Content

Followers

  • No Content