a good secure 'contact us' form script?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ABLady
    Senior Member
    • Apr 2002
    • 475

    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:
  • N9ne
    Senior Member
    • Mar 2002
    • 2477
    • 3.5.0 Beta

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

    Comment

    • noppid
      Senior Member
      • May 2003
      • 625
      • 2.3.2

      #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

      • Gavin.
        Member
        • Jul 2003
        • 81
        • 3.5.0 Pre-Release

        #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

        • Dean C
          Senior Member
          • Mar 2002
          • 4571
          • 3.5.x

          #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

          • Gavin.
            Member
            • Jul 2003
            • 81
            • 3.5.0 Pre-Release

            #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

            • ABLady
              Senior Member
              • Apr 2002
              • 475

              #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

              • Gavin.
                Member
                • Jul 2003
                • 81
                • 3.5.0 Pre-Release

                #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

                • Mainer82
                  Senior Member
                  • Apr 2003
                  • 1285
                  • 1.1.x

                  #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

                  • N9ne
                    Senior Member
                    • Mar 2002
                    • 2477
                    • 3.5.0 Beta

                    #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

                    • Floris
                      Senior Member
                      • Dec 2001
                      • 37767

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

                      Comment

                      • ABLady
                        Senior Member
                        • Apr 2002
                        • 475

                        #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

                        • Lacrosse Boy
                          Senior Member
                          • Jan 2003
                          • 365

                          #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

                          • N9ne
                            Senior Member
                            • Mar 2002
                            • 2477
                            • 3.5.0 Beta

                            #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

                            • cirisme
                              Senior Member
                              • Feb 2003
                              • 1310
                              • 3.0.7

                              #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...