Announcement

Collapse
No announcement yet.

a good secure 'contact us' form script?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • a good secure 'contact us' form script?

    Does anyone know a good "Contact Us" form script? One that is secure and safe?

    :cool: That which is obvious, needs no introduction. :cool:

  • #2
    This looks good: http://www.hotscripts.com/Detailed/24507.html

    Comment


    • #3
      We're using this one and it's reliable.

      Computer Help Forum
      An informed rider makes their first destination the motorcycle forum at rider info.

      Comment


      • #4
        This should work fine...

        PHP Code:
        <?

            
        /***************** CONFIG *******************/

            // Your Email Address
            
        $to '[email protected]';

            
        // Enter a url to redirect to after sending the email if needed
            
        $redirect '';

            
        /*************** END CONFIG *****************/

            // Check to see if form has been submitted
            
        if($_POST['submit'])
            {
                
        $from $_POST['from'];
                
        $subject stripslashes($_POST['subject']);
                
        $body stripslashes($_POST['body']);

                if(
        $from != '' && $subject != '' && $body != ''){
                    
        mail($to$subject$body"From: $from");
                      if(
        $redirect)
                          
        header("Location: $redirect");
                      else
                          
        $message '<p>Email Sent</p>';
                } else {
                    
        $message '<p><font color="red">Please complete ALL fields</font><p>';
                }
            }
        ?>

        <html>
            <head>
                <title>Send An Email</title>
            </head>

            <body>

            <?=$message?>
            <form action="<?=$_SERVER['PHP_SELF']?>" method="post">
                From:<br /> <input type="text" name="from"><br />
                Subject:<br /> <input type="text" name="subject"><br />
                Message:<br /> <textarea name="body"></textarea><br />
                <input type="submit" name="submit" value="Send It!">
            </form>

            </body>
        </html>
        http://www.platinum-central.com
        http://www.netforge.com.au

        Comment


        • #5
          Secure but someone could kill your server with it. You should have a time limit on there You don't want people sending a message every second all day just to try and take down your site.
          Dean Clatworthy - Web Developer/Designer

          Comment


          • #6
            Originally posted by Mist
            Secure but someone could kill your server with it. You should have a time limit on there You don't want people sending a message every second all day just to try and take down your site.
            without using a database to store IP's that would be pretty much very hard to protect against that kind of activity, most forums and contact forums on the net today are open to that kind of activity BTW.
            http://www.platinum-central.com
            http://www.netforge.com.au

            Comment


            • #7
              Thanks - everyone for their suggestions. What about a cgi script? They don't have to use a database.

              :cool: That which is obvious, needs no introduction. :cool:

              Comment


              • #8
                Originally posted by ABLady
                Thanks - everyone for their suggestions. What about a cgi script? They don't have to use a database.
                well... actually they can and they do use a database. I don't think using a CGI script will solve the problem of mass-mailing your email address.
                http://www.platinum-central.com
                http://www.netforge.com.au

                Comment


                • #9
                  Not that this will help right now, but vB3 has one that's built-in.

                  <a href="$vboptions[contactuslink]">Contact Us</a>

                  Then, under vB Options and Contact us, you can specify the subjects that you want listed also.

                  Comment


                  • #10
                    Yuck, CGI would kill the server if it received just 2 emails a day .

                    You could store the ip addresses in a text file...

                    Comment


                    • #11
                      Even better, vBulletin 3 even has sendmessage.php !

                      Comment


                      • #12
                        Okay, so now I know not to use cgi! That's for sure.

                        I'm really excited about vb3 Contact Us built in feature.

                        Thanks everyone.

                        :cool: That which is obvious, needs no introduction. :cool:

                        Comment


                        • #13
                          Originally posted by N9ne
                          Yuck, CGI would kill the server if it received just 2 emails a day .

                          You could store the ip addresses in a text file...
                          Not if it's programmed correctly.

                          It's a common misconception that CGI is slow. It's only slow if it's coded incorrectly. It can be as fast as PHP when you do it properly.

                          The benefits of CGI are increased security, and being more established.
                          | DiscBurn | CD & DVD Replication services, film and VHS to DVD, and duplication equipment
                          |
                          Disc On Demand | Short-run CD & DVD duplication... all online.

                          Comment


                          • #14
                            Originally posted by Lacrosse Boy
                            Not if it's programmed correctly.

                            It's a common misconception that CGI is slow. It's only slow if it's coded incorrectly. It can be as fast as PHP when you do it properly.

                            The benefits of CGI are increased security, and being more established.
                            Put it this way though, generally CGI is slow since perl is programmed poorly (maybe) by many people.

                            Comment


                            • #15
                              People... CGI is not a language. It's a standard for data.

                              Perl is the most common CGI language. And it's slower than PHP because PHP is usually loaded as a module, unlike Perl. Perl and PHP, when set up similarly, are nearly the same.
                              TheologyWeb. We debate theology. srsly.

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...
                              X