Form help PLEASE
Posted: Wed Apr 27, 2005 12:13 pm
alright i have this form on my website and the form is made with HTML and i want to have it submit and be sent through e-mail.
This is the code but nothing is working what so ever:
If anyone has an idea what is wrong please tell me.
RJ
This is the code but nothing is working what so ever:
Code: Select all
<?php
if ($_POST['SUBMIT'] == 'Send the Data')
{
$content = "Name: " . $_POST['personal_name'] . "\n";
$content .= "Company Name: " . $_POST['company_name'] . "\n";
$content .= "Phone #: " . $_POST['contact_phone'] . "\n";
$content .= "Contact time " . $_POST['contact_time'] . "\n";
$content .= "E-mail: " . $_POST['contact_e-mail'] . "\n";
$content .= "Current Web: " . $_POST['current_web'] . "\n";
$content .= "Web URL already: " . $_POST['web_url_already'] . "\n";
$content .= "target_audience: " . $_POST['target_audience'] . "\n";
$content .= "Purpose: " . $_POST['purpose'] . "\n";
$content .= "Updated: " . $_POST['updated'] . "\n";
$content .= "rate: " . $_POST['rate'] . "\n";
$content .= "Comments " . $_POST['comments'] . "\n";
mail('myemailhere', 'Form submission', $content);
echo "<SCRIPT language=JavaScript>window.location.replace(\"iframe.html\")</SCRIPT>";
}
?>RJ