Email Forms

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

    • May 2005
    • 50

    #16
    How do I upload this to the domain? I know, I know, I don't know that much about all these stuff. Thanks for your help Pablo. Hey you look like the whatyoumacallit guy in the movie Matrix but I think Susan looks better than you. :)


    Originally posted by Anonymous
    I have created an example script for you that processes your form succesfully using a generic PHP script.

    Instructions:
    Change the form properties (in BlueVoda) to:
    Action: FEEDBACK.PHP
    Method: POST
    EncodingType:
    (remove the text/plain, so the field becomes empty)

    Now create a new file using Notepad and call it: FEEDBACK.PHP
    Enter the following code into the file:

    Code:
    <HTML>
    <HEAD>
    <TITLE>Thank you for your feedback</TITLE>
    </HEAD>
    <BODY>
    <H2>Thank you for your feedback!</H2>
    <?PHP
        $email = $HTTP_POST_VARS[email];
        $mailto = "feedback@yourdomain.com";
        $mailsubj = "Feedback form";
        $mailhead = "From: $email\n";
        reset ($HTTP_POST_VARS);
        $mailbody = "Values submitted from web site form:\n";
        while (list ($key, $val) = each ($HTTP_POST_VARS)) 
        {
            $mailbody .= "$key : $val\n"; 
         }
        mail($mailto, $mailsubj, $mailbody, $mailhead);
    ?>
    </BODY>
    </HEAD>
    Upload this file to your domain.

    Comment

    • allan
      Members

      • May 2005
      • 50

      #17
      Ooops! I meant Sarah! :)

      Originally posted by allan
      How do I upload this to the domain? I know, I know, I don't know that much about all these stuff. Thanks for your help Pablo. Hey you look like the whatyoumacallit guy in the movie Matrix but I think Susan looks better than you. :)

      Comment

      • Pablo
        Moderator

        • May 2005
        • 507

        #18
        Originally posted by allan
        Ooops! I meant Sarah! :)
        Well, Allan fortunately we are not hired for our looks...
        Forum Moderator
        BlueVoda Spe******t

        Comment

        • Sarah
          Colonel

          • May 2005
          • 513

          #19
          use blueftp

          VodaHost

          Your Website People!
          1-302-283-3777 North America / International
          02036089024 / United Kingdom
          291916438 / Australia

          ------------------------

          Top 3 Best Sellers

          Web Hosting - Unlimited disk space & bandwidth.

          Reseller Hosting - Start your own web hosting business.

          Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)


          Comment

          • George
            Customer Support

            • May 2005
            • 76

            #20
            I think Sarah hired me for my looks :)
            George Fountakos
            VodaHost
            www.VodaHost.com
            Your Website People
            +1-302-283-3777 USA / Canada / International
            (0044) 020 8816 8319 / United Kingdom

            Comment

            • VodaHost
              General & Forum Administrator

              • Mar 2005
              • 12356

              #21
              George Super Stud

              yes, George we hired you for your good looks. Also it does
              not hurt any that your father owns our office building;)

              VodaHost

              Your Website People!
              1-302-283-3777 North America / International
              02036089024 / United Kingdom
              291916438 / Australia

              ------------------------

              Top 3 Best Sellers

              Web Hosting - Unlimited disk space & bandwidth.

              Reseller Hosting - Start your own web hosting business.

              Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)


              Comment

              • allan
                Members

                • May 2005
                • 50

                #22
                Originally posted by Sarah
                use blueftp
                What blueftp? Please give me step by step instruction. You lied to me. You said that your job was just bringing ***** coffee. You took advantage of a newby. :)

                Comment

                • allan
                  Members

                  • May 2005
                  • 50

                  #23
                  Originally posted by VodaHost
                  yes, George we hired you for your good looks. Also it does
                  not hurt any that your father owns our office building;)
                  Ooooh, I see. Insider trading.

                  Comment

                  • VodaHost
                    General & Forum Administrator

                    • Mar 2005
                    • 12356

                    #24
                    You will find BlueFTP in bluevoda

                    tools > FtPManager

                    VodaHost

                    Your Website People!
                    1-302-283-3777 North America / International
                    02036089024 / United Kingdom
                    291916438 / Australia

                    ------------------------

                    Top 3 Best Sellers

                    Web Hosting - Unlimited disk space & bandwidth.

                    Reseller Hosting - Start your own web hosting business.

                    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)


                    Comment

                    • Stroke.nz
                      The Man

                      • May 2005
                      • 188

                      #25
                      Is there a script to make sure the client wrights a message into the fields before submitting?

                      Also is there a time limit script for clients sending emails, to stop spamming by mistake.
                      Dave Hickey

                      www.youngstroke.org.nz

                      www.eko.co.nz

                      Comment

                      • Stroke.nz
                        The Man

                        • May 2005
                        • 188

                        #26
                        Answer

                        For Fields
                        Place in the head section of the page

                        <script>

                        function checkrequired(which){
                        var pass=true
                        if (document.images){
                        for (i=0;i<which.length;i++){
                        var tempobj=which.elements[i]
                        if (tempobj.name.substring(0,=="required"){
                        if (((tempobj.type=="text"||tempobj.type=="textarea") &&tempobj.value=='')||(tempobj.type.toString().cha rAt(0)=="s"&&tempobj.selectedIndex==-1)){
                        pass=false
                        break
                        }
                        }
                        }
                        }
                        if (!pass){
                        alert("One or more of the required elements are not completed. Please complete them, then submit again!")
                        return false
                        }
                        else
                        return true
                        }
                        </script>
                        Add this to the "INSIDE TAG" of your form

                        <form onSubmit="return checkrequired(this)">

                        then lastly add "required" to each of names you called your boxes i.e. requiredname


                        Submit Button

                        Place in the head of the page

                        <script type="text/javascript">

                        //Enter error message to display if submit button has been pressed multiple times below.
                        //Delete below line if you don't want a message displayed:

                        var formerrormsg="You\'ve attempted to submit the form multiple times.\n Please reload page if you need to resubmit form."

                        function checksubmit(submitbtn){
                        submitbtn.form.submit()
                        checksubmit=blocksubmit
                        return false
                        }

                        function blocksubmit(){
                        if (typeof formerrormsg!="undefined")
                        alert(formerrormsg)
                        return false
                        }

                        </script>

                        then add the red part in after tag of the form
                        "
                        <input type="submit" value="Submit" onClick="return checksubmit(this)">
                        </form>

                        Thanks to Simon
                        Dave Hickey

                        www.youngstroke.org.nz

                        www.eko.co.nz

                        Comment

                        • marton23
                          Private

                          • Sep 2005
                          • 1

                          #27
                          hey i need a pass and username to publish it where do i get it do i have to pay?

                          Comment

                          • Maddog
                            Lieutenant Colonel

                            • May 2005
                            • 514

                            #28
                            Originally posted by marton23
                            hey i need a pass and username to publish it where do i get it do i have to pay?
                            goto

                            VodaHost offers the best cpanel hosting on super fast servers with unlimited Bandwidth. #1 rated web hosting for all your cpanel hosting needs.
                            www.bluevodaexchangelink.com
                            BluevodaExchangeLink Help Center
                            Bluevodaexchangelink Forum

                            The only place for bluevoda site to be linked with!

                            Comment

                            • rana
                              Private

                              • Sep 2005
                              • 4

                              #29
                              Hi,

                              I am having serious problem running a SIMPLE email PHP script !

                              The emails are just not reaching any mailboxes.

                              The script -> (http://qmsys.info/mail.php)
                              <?
                              $result = mail("sanjeev.rana@hewitt.com", "the subject", "Line1","From: qm@qmsys.info\n");
                              if ($result == TRUE)
                              echo "Success";
                              else
                              echo "Failed";
                              ?>

                              What am I doing wrong ?? Everytime the output is "Success", however NO EMAIL

                              Please assist ASAP.

                              Comment

                              • Girlonthehill
                                General

                                • Oct 2005
                                • 4193

                                #30
                                Quick question please

                                Hi Dave (and anyone else who may be able to help)

                                Your advice, via the VHCF, have helped me a lot - thanks. A quicky about this one - I thought I could, maybe, adapt it to fit my needs -

                                where do I use this script? Does it go in an HTML box on the relevant BV page? or do I need to create something new? Soz - I'm a bit green at all this. Thanks for any help you can add.



                                Originally posted by Stroke.nz
                                For Fields
                                Place in the head section of the page

                                <script>

                                function checkrequired(which){
                                var pass=true
                                if (document.images){
                                for (i=0;i<which.length;i++){
                                var tempobj=which.elements[i]
                                if (tempobj.name.substring(0,=="required"){
                                if (((tempobj.type=="text"||tempobj.type=="textarea") &&tempobj.value=='')||(tempobj.type.toString().cha rAt(0)=="s"&&tempobj.selectedIndex==-1)){
                                pass=false
                                break
                                }
                                }
                                }
                                }
                                if (!pass){
                                alert("One or more of the required elements are not completed. Please complete them, then submit again!")
                                return false
                                }
                                else
                                return true
                                }
                                </script>
                                Add this to the "INSIDE TAG" of your form

                                <form onSubmit="return checkrequired(this)">

                                then lastly add "required" to each of names you called your boxes i.e. requiredname


                                Submit Button

                                Place in the head of the page

                                <script type="text/javascript">

                                //Enter error message to display if submit button has been pressed multiple times below.
                                //Delete below line if you don't want a message displayed:

                                var formerrormsg="You\'ve attempted to submit the form multiple times.\n Please reload page if you need to resubmit form."

                                function checksubmit(submitbtn){
                                submitbtn.form.submit()
                                checksubmit=blocksubmit
                                return false
                                }

                                function blocksubmit(){
                                if (typeof formerrormsg!="undefined")
                                alert(formerrormsg)
                                return false
                                }

                                </script>

                                then add the red part in after tag of the form
                                "
                                <input type="submit" value="Submit" onClick="return checksubmit(this)">
                                </form>

                                Thanks to Simon

                                VodaHost

                                Your Website People!
                                1-302-283-3777 North America / International
                                02036089024 / United Kingdom
                                291916438 / Australia

                                ------------------------

                                Top 3 Best Sellers

                                Web Hosting - Unlimited disk space & bandwidth.

                                Reseller Hosting - Start your own web hosting business.

                                Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)


                                Comment

                                Working...
                                X