note 78234 rejected from function.mail by danbrown

From: Date: Sat, 25 Apr 2009 14:58:39 +0000
Subject: note 78234 rejected from function.mail by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-153732@lists.php.net to get a copy of this message
Note Submitter: largo at email dot pcleak dot com ---- hello ok i have this email form right and it is <?php if (isset($_REQUEST['email'])) //if "email" is filled out, send email { //send email $email = $_REQUEST['email'] ; $subject = $_REQUEST['subject'] ; $message = $_REQUEST['message'] ; mail( "someone@example.com", "Subject: $subject", $message, "From: $email" ); echo "Thank you for using our mail form"; } else //if "email" is not filled out, display the form { echo "<form method='post' action='mailform.php'> Email: <input name='email' type='text' /><br /> Subject: <input name='subject' type='text' /><br /> Message:<br /> <textarea name='message' rows='15' cols='40'> </textarea><br /> <input type='submit' /> </form>"; } ?> i like it but i want to change like but i want it to ask for sending it "TOO" and it automatically post the sender

« previous php.notes (#153732) next »