This may not be what you're looking for, but thanks to Pilot Designs I found a fantastic PHP script to send form results to an email address. It's so easy even a gnubler can do it.
Here's the URL: http://www.scriptsearch.com/cgi-bin/jump.cgi?ID=1449
Here's the PHP code:
Code:
<?php
//--------------------------Set these parameters--------------------------
$subject = 'Form Submission'; // Subject of email sent to you.
$emailadd = 'youremail@anywhere.com'; // Your email address. This is where the form information will be sent.
$url = 'http://www.mydomain.com/whatever/'; // Where to redirect after form is processed.
$req = '1'; // Makes all fields required. If set to '1' no field can not be empty. If set to '0' any or all fields can be empty.
// --------------------------Do not edit below this line--------------------------
$text = "Results from form:\n\n";
$space = ' ';
$line = '
';
foreach ($_POST as $key => $value)
{
if ($req == '1')
{
if ($value == '')
{echo "$key is empty";die;}
}
$j = strlen($key);
if ($j >= 20)
{echo "Name of form element $key cannot be longer than 20 characters";die;}
$j = 20 - $j;
for ($i = 1; $i <= $j; $i++)
{$space .= ' ';}
$value = str_replace('\n', "$line", $value);
$conc = "{$key}:$space{$value}$line";
$text .= $conc;
$space = ' ';
}
mail($emailadd, $subject, $text, 'From: '.$emailadd.'');
echo '<META HTTP-EQUIV=Refresh CONTENT="0; URL='.$url.'">';
?>
And here's the code to put at the beginning of your form in your HTML document:
Code:
<form action="nameofformscript.php" method="post" class="cssform">