Help!
I tried looking up coding online and even copied it into my site. The issue I am running into is I have 2 forms, one is a simple contact us form. Name, Email, and Message and you submit it. That form works properly. Below that I have a 2nd form, mainly the same thing but you are able to attach a resume file. When I have clients submit that form, only the name goes through, no message or file. There is also a message on top of the page that says "Perform code for page without POST data. " Below is my code, please help!
[php]<?php
if ($_POST[‘parse_var’] == “contactform”) {
$emailTitle = 'New Email From Your Website!';
$yourEmail = '[email protected]';
$emailField = $_POST['email'];
$nameField = $_POST['name'];
$messageField = $_POST['message'];
$body = <<<EOD
Email: $emailField
Name: $nameField
Message: $messageField
EOD;
$headers = "From: $emailField\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail("$yourEmail", "$emailTitle", "$body", "$headers");
$sent = "Thank You! Your message has been sent.";
if (count($postIdentifierArr) != 1)
{
count($postIdentifierArr) < 1 or
die("\$_POST contained more than one post identifier: " .
implode(" ", $postIdentifierArr));
die("\$_POST did not contain a known post identifier.");
}
switch ($postIdentifierArr[0])
{
case 'F1_Submit':
echo "Perform actual code for F1_Submit.";
break;
case 'Modify':
echo "Perform actual code for F2_Submit.";
break;
case 'Delete':
echo "Perform actual code for F3_Submit.";
break;
}
}
else
{
echo "Perform code for page without POST data. ";
}
?>[/php]
[embed=425,349]
Submit this form for more information about Stellargy Services
|