Forum Moderators: coopster

Message Too Old, No Replies

looking for addon script for "contact us"

         

eaglepi

12:01 pm on Feb 25, 2005 (gmt 0)

10+ Year Member



I have a classified ad script, on the "contact us" page there isn't anything on it, it's designed that way so you can add whatever you'd like to it. It can be as simple as "if you have any questions contact us at email@myisp.com .

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.

interactive gun

6:04 pm on Feb 26, 2005 (gmt 0)

10+ Year Member



php is the easiest combine it with some javascript and there is very little you can't accomplish.

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.