
<? //initilize PHP
if($submit) //If submit is hit
{
mail("youremailaddress@whatever.com", "$subject", "$email", "$comments");
}?>
And here is the form for the sending this file. Its fairly simple and easy to understand if you know HTML. Now here is the processing in English:
<? else
{?>
<form method="post" action="comments.php">
//comments.php = the name of this script
E-Mail: <INPUT TYPE="TEXT" NAME="email" size=60> //their email address
Subject: <INPUT TYPE="TEXT" NAME="subject" size=60> //subject
Comments: <TEXTAREA NAME="comments" ROWS=10 COLS=30></TEXTAREA> //comments
<input type="submit" name="submit" value="submit">
</form>
<? }?>
Not too tough was it? Well thats it folks. If you want to add more sections to the comments section, just use the PHP .= function to keep adding string together. I hope it works out for you and if it doesn't, email for help at webmaster@spoono.com and we'll try to help you out.
Copyright © 2000-2010 Spoono, LLC. All rights reserved.
Network: Reseller Web Hosting by Spoono Host | Spoonloads | Absolute Cross
Terms of Service | Privacy Policy.