Followup. The php code generated with the blocs form unfortunatley is not the same as your example, so I’m not sure what to change.
Bloc generated this PHP:
if(empty($_POST['name']) && strlen($_POST['name']) == 0 || empty($_POST['email']) && strlen($_POST['email']) == 0 || empty($_POST['message']) && strlen($_POST['message']) == 0)
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$to = 'firstname.lastname@example.org'; // Email submissions are sent to this email
// Create email
$email_subject = "Message from a Blocs website.";
$email_body = "You have received a new message. \n\n".
"Name: $name \nEmail: $email \nMessage: $message \n";
$headers = "MIME-Version: 1.0\r\nContent-type: text/plain; charset=UTF-8\r\n";
$headers .= "From: email@example.com\n";
$headers .= "Reply-To: $email";
mail($to,$email_subject,$email_body,$headers); // Post message
Any suggestions-- this seems way above my pay grade and currently I’m having to rely on an outside url for contact form through jimdo.com I called ipage tech support twice and they said they can’t fix anything at their end – and no one could explain how to implement their instructions on PHP:
How PHP works at iPage
iPage’s PowerPack allows you to write scripts using PHP. To ensure that your PHP scripts work smoothly, please refer to the following information before you get started:
• Path to your Web document root: /home/users/web/b487/ipg.snowlion
• This is important, as most of your scripts will need to specify this location. For example, this is required if you’d like your PHP script to upload files.
• Current Default version of PHP: 5.5
Any insight would be appreciated. Thanks!!!