Forum Moderators: coopster
However I would like to add a form email to that page, are there any good PHP ones available. when it comes to web design I'm about a 1 slice of a 8 slice pizza......lol ( in other words I know just enough to get myself in trouble) so if there are other easier "Contact Us" email options other than PHP please feel free to let me know.
add a form on the display side of the world:
<form method="post" action"page.php">
<input type="hidden" name="send" value="sure">
<input type="text" value="" name="first_name">
<input type="text" value="" name="email">
</form>
the users will enter info into the form.
on page.php
if (isset($send))
{
enter some form validators here or use some javascripts before this to do it on the client side, and push all validations to yes or some identifier you relate to.
if ($validations=="yes")
{
$subject="you filled out my form";
set your headers to send either as html ot text
$email_message="Thanks for filling out the form $first_name etc.. etc..";
mail($email, $subject, $email_message, $headers);
}
else
{
$error="yes"
}
}
It can be as small, or complex as you need it.