I did a bit of editing, so this is what I have now...
Code:
if ($submit) {
$message = "Logged IP $REMOTE_ADDR \n";
$message .= "Time/Date " . date("g:ia m/d/y") . "\n";
$message .= "Name $name\n";
$message .= "Email $email\n";
$message .= "Domain $domain\n";
$message .= "Plan $plan\n";
$message .= "FrontPage $frontpage\n";
$message .= "Subdomains $subdomains\n";
$message .= "User $user\n";
$message .= "Pass $pass\n";
$message .= "Other $other\n";
$mailto = "kb@cinqq.net";
mail($mailto,"Form Output",$message,"From: $name <$email>");
echo "Submission Sent!";
exit;
}
echo "<FORM ACTION=\"$SCRIPT_NAME\" METHOD=\"post\">";
echo "<INPUT TYPE=\"text\" NAME=\"name\" SIZE=\"30\">";
echo "<BR> <BR>";
echo "<INPUT TYPE=\"text\" NAME\"email\" SIZE=\"30\">";
echo "<BR> <BR> <BR>";
echo "<INPUT TYPE=\"text\" NAME=\"domain\" SIZE=\"30\">";
echo "<BR> <BR>";
echo "<INPUT TYPE=\"text\" NAME=\"plan\" SIZE=\"30\">";
echo "<BR> <BR> <BR> <BR>";
echo "<INPUT TYPE=\"text\" NAME=\"frontpage\" SIZE=\"15\">";
echo "<BR><INPUT TYPE=\"text\" NAME=\"subdomains\" SIZE=\"15\">";
echo "<BR> <BR> <BR>";
echo "<INPUT TYPE=\"text\" NAME=\"user\" SIZE=\"30\">";
echo "<BR><INPUT TYPE=\"text\" NAME=\"pass\" SIZE=\"30\">";
echo "<BR> <BR> <BR> <BR>";
echo "<TEXTAREA NAME=\"other\" ROWS=\"6\" COLS=\"40\"></TEXTAREA>";
echo "<BR> <BR>";
echo "<INPUT TYPE=\"submit\" NAME=\"submit\" VALUE=\"Submit\">";
echo " <INPUT TYPE=\"reset\" NAME=\"reset\" VALUE=\"Reset\">";
echo "</FORM>";
The problems...
- The email address part doesn't submit
- I get an error (even though the form submits and I recieve it)
The error says 'Object Expected'. It's not a PHP error, though. It's one of the yellow exclamation points it the bottom left-hand corner.
What can I do to fix these errors?
Thank you!
