SitePoint Sponsor

User Tag List

Results 1 to 23 of 23
  1. #1
    SitePoint Addict
    Join Date
    Jul 2004
    Location
    Calgary
    Posts
    222
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Email Form "From" Field Defaults to my Hosting Provider

    Hi,

    I once had someone help me with this same problem and I've since lost my notes on the fix.

    Basically, when someone fills out this form I have put together, I want it to say their name in the email that I receive. For instance, if ther person types "Ronald McDonald" as their name, that should appear in the Email name. What is happening right now is that when I fill out the form and send, it shows my hosting provider as who it is from. Example, "Direct Nic" is the name in the name of the email of whom it is from. I figure I need to somehow specify that I need the name to always appear in the From field but I have no idea how to do this. If it helps, I have posted the code below. I have searched online for hours for a fix but haven't had any luck! Note:It would also be nice to figure out how to categorize the email so that it would say:

    <b>Name/b> Ronald McDonald

    This way, the category is bold and has the colon which makes the form easier to read in an email (depending on how complex it could be). I can't figure a fix here either


    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
    	"http://www.w3.org/TR/REC-html40/loose.dtd">
    <html>
    <head>
    <title>Contact Form</title>
    <meta http-equiv="Content-Type" 
       content="text/html; charset=iso-8859-1">
    </head>
    <body>
    <?php
       if ($_SERVER['REQUEST_METHOD'] != 'POST'){
          $me = $_SERVER['PHP_SELF'];
    ?>
       <form name="form1" method="post"
             action="<?php echo $me;?>">
          <table border="0" cellspacing="0" cellpadding="2">
             <tr>
                <td>Name:</td>
                <td><input type="text" name="Name"></td>
             </tr>
             <tr>
                <td>Subject</td>
                <td><input type="text" name="Subject"></td>
             </tr>
             <tr>
                <td valign="top">Message:</td>
                <td><textarea name="MsgBody"></textarea></td>
             </tr>
             <tr>
                <td>&nbsp;</td>
                <td><input type="submit" name="Submit"
                   value="Send"></td>
             </tr>
          </table>
       </form>
    <?php
       } else {
          error_reporting(0);
          $recipient = 'myemail@myemail.com';
          $subject = stripslashes($_POST['Subject']);
          $from = stripslashes($_POST['Name']);
          $msg = "Message from: $from\n\n".stripslashes($_POST['MsgBody']);
          if (mail($recipient, $subject, $msg))
             echo nl2br("<b>Thank you for your inquiry. Should your message require a response, I will reply within 48 hours.</b>");
          else
             echo "Message failed to send";
    }
    ?>
    </body>
    </html>

  2. #2
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,804
    Mentioned
    157 Post(s)
    Tagged
    3 Thread(s)
    You need to define the from field in with the extra header sent with the message.
    PHP Code:
    <?php
    $to      
    'nobody@example.com';
    $subject 'the subject';
    $message 'hello';
    $headers 'From: webmaster@example.com' "\r\n" .
       
    'Reply-To: webmaster@example.com' "\r\n" .
       
    'X-Mailer: PHP/' phpversion();

    mail($to$subject$message$headers);
    ?>
    Change the
    PHP Code:
    $headers 'From: webmaster@example.com' "\r\n" 
    To your from varable and it should work ie:
    PHP Code:
    $headers 'From:'$from' . "\r\n" . 
    Cheers

    Mike
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  3. #3
    SitePoint Addict
    Join Date
    Jul 2004
    Location
    Calgary
    Posts
    222
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm, i must be just too new with this as I made the changes but the inbox still shows the new message as being from my hosting provider. Could anyone take my code and put the changes SpikeZ into it so that it should definitely work? Apparently, I am not following directions properly!

  4. #4
    SitePoint Enthusiast
    Join Date
    Nov 2004
    Location
    greenville
    Posts
    70
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
     <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
     	"http://www.w3.org/TR/REC-html40/loose.dtd">
     <html>
     <head>
     <title>Contact Form</title>
     <meta http-equiv="Content-Type" 
        content="text/html; charset=iso-8859-1">
     </head>
     <body>
     <?php
     if ($_SERVER['REQUEST_METHOD'] != 'POST')
     {
     	$me = $_SERVER['PHP_SELF'];
     ?>
        <form name="form1" method="post"
     		 action="<?php echo $me;?>">
     	  <table border="0" cellspacing="0" cellpadding="2">
     		 <tr>
     			<td>Name:</td>
     			<td><input type="text" name="Name"></td>
     		 </tr>
     		 <tr>
     			<td>Subject</td>
     			<td><input type="text" name="Subject"></td>
     		 </tr>
     		 <tr>
     			<td valign="top">Message:</td>
     		    <td><textarea name="MsgBody"></textarea></td>
     		 </tr>
     		 <tr>
     			<td>&nbsp;</td>
     			<td><input type="submit" name="Submit"
     			   value="Send"></td>
     		 </tr>
     	  </table>
        </form>
     <?php
     } 
     else 
     {
     	error_reporting(0);
     	
     	$to = 'myemail@myemail.com';
     	$subject = stripslashes($_POST['Subject']);
     	$from = stripslashes($_POST['Name']);
     	$message = stripslashes($_POST['MsgBody']);
     
     	$headers = 'From: ' . $from . "\r\n" .
     			   'Reply-To: ' . $from . "\r\n" .
     				  'X-Mailer: PHP/' . phpversion(); 
     	if (mail($to, $subject, $message, $headers))
     	{
     		echo nl2br("<b>Thank you for your inquiry. Should your message require a response, I will reply within 48 hours.</b>");
     	}
     	else
     	{
     		echo "Message failed to send";
     	}
     }
     ?>
     </body>
     </html>
    That should work.

  5. #5
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,804
    Mentioned
    157 Post(s)
    Tagged
    3 Thread(s)
    looks good to me!
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  6. #6
    SitePoint Addict
    Join Date
    Jul 2004
    Location
    Calgary
    Posts
    222
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Much warmer! However, now what is happening is that it takes the name and adds it to :

    @vito.dreamhost.com

    So, if I fill it out as my name being JoeSomebody...the email says JoeSomebody@vito.dreamhost.com

    I guess there has to be a way to make it refer to the email address the person using the form provides?

    Here is what I did to add the email field which really doesn't do anything as far as changing that default email that appears in the email each time:

    Code:
     <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
     	"http://www.w3.org/TR/REC-html40/loose.dtd">
     <html>
     <head>
     <title>Contact Form</title>
     <meta http-equiv="Content-Type" 
        content="text/html; charset=iso-8859-1">
     </head>
     <body>
     <?php
     if ($_SERVER['REQUEST_METHOD'] != 'POST')
     {
     	$me = $_SERVER['PHP_SELF'];
     ?>
        <form name="form1" method="post"
     		 action="<?php echo $me;?>">
     	  <table border="0" cellspacing="0" cellpadding="2">
     		 <tr>
     			<td>Name:</td>
     			<td><input type="text" name="Name"></td>
     		 </tr>
     		 <tr>
     			<td>Email</td>
     			<td><input type="text" name="Email"></td>
     		 </tr>
    		 <tr>
     			<td>Subject</td>
     			<td><input type="text" name="Subject"></td>
     		 </tr>
     		 <tr>
     			<td valign="top">Message:</td>
     		    <td><textarea name="MsgBody"></textarea></td>
     		 </tr>
     		 <tr>
     			<td>&nbsp;</td>
     			<td><input type="submit" name="Submit"
     			   value="Send"></td>
     		 </tr>
     	  </table>
        </form>
     <?php
     } 
     else 
     {
     	error_reporting(0);
     	
     	$to = 'joesomebody@joesomebody.com';
     	$subject = stripslashes($_POST['Subject']);
     	$from = stripslashes($_POST['Name']);
    	$email = stripslashes($_POST['Email']);
     	$message = stripslashes($_POST['MsgBody']);
     
     	$headers = 'From: ' . $from . "\r\n" .
     			   'Reply-To: ' . $from . "\r\n" .
     				  'X-Mailer: PHP/' . phpversion(); 
     	if (mail($to, $subject, $message, $headers))
     	{
     		echo nl2br("<b>Thank you for your inquiry. Should your message require a response, I will reply within 48 hours.</b>");
     	}
     	else
     	{
     		echo "Message failed to send";
     	}
     }
     ?>
     </body>
     </html>

  7. #7
    SitePoint Enthusiast
    Join Date
    Nov 2004
    Location
    greenville
    Posts
    70
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
     <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
     	 "http://www.w3.org/TR/REC-html40/loose.dtd">
      <html>
      <head>
      <title>Contact Form</title>
      <meta http-equiv="Content-Type" 
     	content="text/html; charset=iso-8859-1">
      </head>
      <body>
      <?php
      if ($_SERVER['REQUEST_METHOD'] != 'POST')
      {
     	 $me = $_SERVER['PHP_SELF'];
      ?>
     	<form name="form1" method="post"
     		  action="<?php echo $me;?>">
     	   <table border="0" cellspacing="0" cellpadding="2">
     		  <tr>
     			 <td>Name:</td>
     			 <td><input type="text" name="Name"></td>
     		  </tr>
     		  <tr>
     			 <td>Email</td>
     			 <td><input type="text" name="Email"></td>
     		  </tr>
     		 <tr>
     			 <td>Subject</td>
     			 <td><input type="text" name="Subject"></td>
     		  </tr>
     		  <tr>
     			 <td valign="top">Message:</td>
     			 <td><textarea name="MsgBody"></textarea></td>
     		  </tr>
     		  <tr>
     			 <td>&nbsp;</td>
     			 <td><input type="submit" name="Submit"
     				value="Send"></td>
     		  </tr>
     	   </table>
     	</form>
      <?php
      } 
      else 
      {
     	 error_reporting(0);
     	 
     	 $to = 'joesomebody@joesomebody.com';
     	 $subject = stripslashes($_POST['Subject']);
     	 $name = stripslashes($_POST['Name']);
     	$email = stripslashes($_POST['Email']);
     	 $message = stripslashes($_POST['MsgBody']);
      
     	 $headers = 'From: "' . $name . '" <' . $email . ">\r\n" .
     				'Reply-To: ' . $email . "\r\n" .
     				'X-Mailer: PHP/' . phpversion(); 
     	 if (mail($to, $subject, $message, $headers))
     	 {
     		 echo nl2br("<b>Thank you for your inquiry. Should your message require a response, I will reply within 48 hours.</b>");
     	 }
     	 else
     	 {
     		 echo "Message failed to send";
     	 }
      }
      ?>
      </body>
      </html>
    This should do ya

  8. #8
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,804
    Mentioned
    157 Post(s)
    Tagged
    3 Thread(s)
    LOL that's eactly what I got on the clipboard!
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  9. #9
    SitePoint Addict
    Join Date
    Jul 2004
    Location
    Calgary
    Posts
    222
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You guys and gals are always great on these boards, I love coming here and hope someday I'll be experts too

  10. #10
    SitePoint Addict
    Join Date
    Jul 2004
    Location
    Calgary
    Posts
    222
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Any takers on how to make the form work so that in the email it will do something like this:

    Name: John Doe

    Email: johndoe@johndoe.com

    Message From: Here is the message


    This way, everything is broken down and makes the email easier to follow. I tried for fun adding this:

    $msg = "Message From:" stripslashes($_POST['MsgBody']);

    This resulted in me no longer having a message in the body of the email, however.

  11. #11
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,804
    Mentioned
    157 Post(s)
    Tagged
    3 Thread(s)
    try this,
    PHP Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
          "http://www.w3.org/TR/REC-html40/loose.dtd">
      <html>
      <head>
      <title>Contact Form</title>
      <meta http-equiv="Content-Type" 
         content="text/html; charset=iso-8859-1">
      </head>
      <body>
      <?php
      
    if ($_SERVER['REQUEST_METHOD'] != 'POST')
      {
          
    $me $_SERVER['PHP_SELF'];
      
    ?>
         <form name="form1" method="post"
               action="<?php echo $me;?>">
            <table border="0" cellspacing="0" cellpadding="2">
               <tr>
                  <td>Name:</td>
                  <td><input type="text" name="Name"></td>
               </tr>
               <tr>
                  <td>Email</td>
                  <td><input type="text" name="Email"></td>
               </tr>
              <tr>
                  <td>Subject</td>
                  <td><input type="text" name="Subject"></td>
               </tr>
               <tr>
                  <td valign="top">Message:</td>
                  <td><textarea name="MsgBody"></textarea></td>
               </tr>
               <tr>
                  <td>&nbsp;</td>
                  <td><input type="submit" name="Submit"
                     value="Send"></td>
               </tr>
            </table>
         </form>
      <?php
      

      else 
      {
          
    error_reporting(0);
          
          
    $to 'joesomebody@joesomebody.com';
          
    $subject stripslashes($_POST['Subject']);
          
    $name stripslashes($_POST['Name']);
         
    $email stripslashes($_POST['Email']);
          
    $message 'Name'$name '\r\n';
         
    $message .= 'Email'$email '\r\n';
         
    $message .= stripslashes($_POST['MsgBody']);
      
          
    $headers 'From: "' $name '" <' $email ">\r\n" .
                     
    'Reply-To: ' $email "\r\n" .
                     
    'X-Mailer: PHP/' phpversion(); 
          if (
    mail($to$subject$message$headers))
          {
              echo 
    nl2br("<b>Thank you for your inquiry. Should your message require a response, I will reply within 48 hours.</b>");
          }
          else
          {
              echo 
    "Message failed to send";
          }
      }
      
    ?>
      </body>
      </html>
    Mike
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  12. #12
    SitePoint Addict
    Join Date
    Jul 2004
    Location
    Calgary
    Posts
    222
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nope, just a bunch of mumbo jumbo in the subject line and looks like the email field got lost someplace too!

  13. #13
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,804
    Mentioned
    157 Post(s)
    Tagged
    3 Thread(s)
    Really? that's a bit odd! all I did was take the Name and email field and append them to the message body.
    Hmm, I will have a think about it!

    BTW it should be enquiry not inquiry!

    Mike
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  14. #14
    SitePoint Enthusiast
    Join Date
    Nov 2004
    Location
    greenville
    Posts
    70
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    JoeSomebody, your inbox is full. I can't send you a reply to your last message

  15. #15
    SitePoint Addict
    Join Date
    Jul 2004
    Location
    Calgary
    Posts
    222
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Give it a shot now TheWizard! Or, post it here as it could help someone else that's really new to this stuff like me!

  16. #16
    SitePoint Addict
    Join Date
    Jul 2004
    Location
    Calgary
    Posts
    222
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not wanting to leave any other people interested in learning with me, or teaching me how to do what I was talking to TheWizard about here it is...

    Right now, all of the fields of the email form are being shown in the subject line of the email that I receive. I just want the "Subject" line to appear in the Subject line, not all of the fields.

    Also, I would love to be able to set it up so that particular fields are required and a "Oops, you need to provide your email address" (for example) message pops up or appears if things are left out. I'm sure if someone could set up one of these, I could figure it out for the rest as I'm sure they follow the same format!

    Here is the latest code:

    Code:
     <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
    "http://www.w3.org/TR/REC-html40/loose.dtd">
    <html>
    <head>
    <title>Contact Form</title>
    <meta http-equiv="Content-Type"
    content="text/html; charset=iso-8859-1">
    </head>
    <body>
    <?php
    if ($_SERVER['REQUEST_METHOD'] != 'POST')
    {
    $me = $_SERVER['PHP_SELF'];
    ?>
    <form name="form1" method="post"
    action="<?php echo $me;?>">
    <table border="0" cellspacing="0" cellpadding="2">
    <tr>
    <td>Name:</td>
    <td><input type="text" name="Name"></td>
    </tr>
    <tr>
    <td>Email</td>
    <td><input type="text" name="Email"></td>
    </tr>
    <tr>
    <td>Subject</td>
    <td><input type="text" name="Subject"></td>
    </tr>
    <tr>
    <td valign="top">Message:</td>
    <td><textarea name="MsgBody"></textarea></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td><input type="submit" name="Submit"
    value="Send"></td>
    </tr>
    </table>
    </form>
    <?php
    }
    else
    {
    error_reporting(0);
    
    $to = 'joe@joe.com';
    $subject = stripslashes($_POST['Subject']);
    $name = stripslashes($_POST['Name']);
    $email = stripslashes($_POST['Email']);
    $message .= 'Name: ' . $name . "\r\n\r\n";
    $message .= 'E-mail: ' . $email . "\r\n\r\n";
    $message .= 'Message: ' . stripslashes($_POST['MsgBody']) . "\r\n";
    
    $headers = 'From: "' . $name . '" <' . $email . ">\r\n" .
    'Reply-To: ' . $email . "\r\n" .
    'X-Mailer: PHP/' . phpversion();
    if (mail($to, $subject, $message, $headers))
    {
    echo nl2br("<b>Thank you for your inquiry. Should your message require a response, I will reply within 48 hours.</b>");
    }
    else
    {
    echo "Message failed to send";
    }
    }
    ?>
    </body>
    </html>

  17. #17
    SitePoint Addict
    Join Date
    May 2003
    Location
    sitepoint
    Posts
    247
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Having the same sort of problem, I swear it worked when I was first learning php. I'm still learning, but when I first learned the mail function it worked. Is it something the webhost can block you from doing?

    PHP Code:
                    $to $e;
                
    $from "register@domain.com";
                
    $subject "One more step";
                
    $message "Test";
                
    $headers .= "From: " $from "\r\n";
                
    $headers "MIME-Version: 1.0\r\n";
                
    $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
                
    $headers .= "Content-Transfer-Encoding: 7bit\r\n";
                
    $mailsent =  mail($to$subject$message$headers); 
    Half way to nowhere

  18. #18
    SitePoint Addict
    Join Date
    Jul 2004
    Location
    Calgary
    Posts
    222
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nevermind, it has been one LONG weekend. Here I am trying to figure out why it is all appearing in my GMAIL account when my smarter girlfriend said DUH, all of the emails appear in the subject.

    I have no clue why I wasn't realizing the obvious, BUT...it works FINE!

    Yes, I really feel stupid!

  19. #19
    SitePoint Enthusiast
    Join Date
    Nov 2004
    Location
    greenville
    Posts
    70
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ^_^; I'm just glad it works. Thank your GF for pointing that out to you for me ^_^;

  20. #20
    SitePoint Zealot
    Join Date
    Jun 2004
    Location
    Netherlands
    Posts
    172
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    JoeSomebody,
    if I may ask: do you do any input filtering on this form? As the code is now, it is vulnerable to email-injection. Hope you read about that problem, there have been a couple of threads about that already.

  21. #21
    SitePoint Addict
    Join Date
    Jul 2004
    Location
    Calgary
    Posts
    222
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nope, I can't say I follow. Are you saying others will steal the code?

  22. #22
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,804
    Mentioned
    157 Post(s)
    Tagged
    3 Thread(s)
    No, not steal the code, use your form to email spam on your 'behalf'....
    Hang on, there was a thread about it recently.....
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  23. #23
    SitePoint Zealot
    Join Date
    Jun 2004
    Location
    Netherlands
    Posts
    172
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    No, but spammers or spambots will (mis)use your contactform to send spam to others, with YOUR script, from YOUR domain. It's done by injection of extra code in the headers of the mail function:
    PHP Code:
    $name $_POST['name'];
    $headers 'From: "' $name '" <' $email ">\r\n" 
    There have been some threads on this forum:
    Spammer keeps nailing my contact form:
    http://www.sitepoint.com/forums/showthread.php?t=299991
    Email injection:
    http://www.sitepoint.com/forums/showthread.php?t=298792

    Some good info about the problem can be found here:
    http://securephp.damonkohler.com/ind...mail_Injection
    http://www.anders.com/cms/75

    There are different solutions. In the threads i just mentioned there are some. Also, the NYPHP org has a page about the problem:
    http://www.nyphp.org/phundamentals/e..._injection.php
    I would keep an eye on that one, it'll be updated/revised.

    At the moment I use this one:
    PHP Code:
    <?php

    function email_injection_filter($formInput
      { 
      
    $injectionStrings = array("apparently-to"
                                
    "bcc"
                                
    "boundary="
                                
    "charset"
                                
    "content-disposition"
                                
    "content-type"
                                
    "content-transfer-encoding"
                                
    "errors-to"
                                
    "in-reply-to"
                                
    "message-id"
                                
    "mime-version"
                                
    "multipart/mixed"
                                
    "multipart/alternative"
                                
    "multipart/related"
                                
    "reply-to"
                                
    "x-mailer"
                                
    "x-sender"
                                
    "x-uidl" 
                                
    ); 
      foreach (
    $injectionStrings as $spam
        { 
        
    $pos strpos(strtolower($formInput), $spam); 
        if (
    $pos !== false
          { 
          
    error_log(...) 
          exit(
    "<html><title>Fatal Error</title><body><p>We're sorry, your message could not be processed due to a fatal error.</p><p>Please contact us at 1-800-xxx-xxxx.</p></body></html>"); 
          } 
        } 
      }

    $sendto="myname@mydomain.com"
    $emailsubject="Reply from Website"
    $thankyou="http://www.mydomain.com/thanks.html"
    $msg 'Tel: ' $visitorPhone "\r\n" stripslashes($comments); 
    $from "From: ".$_POST['visitorName']." <".$_POST['visitorEmail'].">\r\n"

    if (
    $_POST['submit_x']) { 

       foreach (
    $_POST as $formInput
         { 
         
    email_injection_filter($formInput); 
         }

    mail($sendto$emailsubject$msg$from); 
    header("Location: $thankyou"); 

    ?>


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •