View Single Post
Old 07-22-2005, 10:15 AM   #1 (permalink)
unknowngiver
Platinum Lifetime Member
 
Last Online: 04-18-2008 05:49 PM
iTrader: (11)
Join Date: Jun 2005
Posts: 524
DNF$: 2,486


My first lil script...and problems :p

Okay
i finally created a useless script and i am facing some problems

so basically its an anonymous emailer

here is the code

email.html
Code:
<form action="mail.php" method="post">
Your Name: <input type="text" name="name" size="20"><br>
E-mail: <input type="text" name="email" size="20"><br><br>
To: <input type="text" name="id" size="20"><br>
Subject: <input type="text" name="subject" size="20"><br>
Comments<br>
<textarea name="comments" rows="1" cols="20"></textarea><br><br>
<input type="submit" value="Submit">
</form>
mail.php
Code:
<?
/***************************************************************************
 *                           mail.php
 *                            -------------------
 *   Version              : 0.1
 *   email                : unknowngiver@gmail.com
 * Warning:              Dont copy my source or fbi will kick ur ***
 ***************************************************************************/

$name=$_POST['name'];
$email=$_POST['email'];
$header=$_post['subject'];
$comments=$_POST['comments'];
$to=$_POST['id'];
$message=$comments;
if(mail($to,$header,$message,"From: $email\n")) {
echo "Thanks for your comments.";
} else {
echo "There was a problem sending the mail. Please check that you filled in the form correctly.";
}
?>
__________________
Bookmark!
unknowngiver is offline   Reply With Quote
Sponsored Links