Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

Which good PHP Email Form I can use?

General discussions related to php

Moderators: macek, egami, gesf

Which good PHP Email Form I can use?

Postby rcrane » Fri Dec 27, 2002 12:10 pm

Hello evryone,

I wanted to find out if somebody can suggest a good email form written in PHP?

Thank you in advanced,

Richard Crane
rcrane
New php-forum User
New php-forum User
 
Posts: 3
Joined: Wed Jun 12, 2002 12:39 pm

Postby Joan Garnet » Fri Dec 27, 2002 9:11 pm

Just make a form in HTML
Code: Select all
<form method="POST" action="email.php">
Your Name: <input type="text" name="visitor" size="35">
<br>
Your Email: <input type="text" name="visitormail" size="35">
<br><br>
Mail Message:
<br>
<textarea name="notes" rows="4" cols="40"></textarea>
<br>
<input type="submit" VALUE="Send email">
</form>



and send data to email.php, where you will have this code:
Code: Select all
<?php
if ($HTTP_POST_VARS) {
mail($HTTP_POST_VARS["myemail"], $HTTP_POST_VARS["subject"], $HTTP_POST_VARS["message"], $HTTP_POST_VARS["from"]);
}
?>


That's it
:)
User avatar
Joan Garnet
Moderator
Moderator
 
Posts: 387
Joined: Sat Aug 03, 2002 2:56 am
Location: Mars


Return to PHP General

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron