Announcement

Collapse
No announcement yet.

Is there a tutorial for php script for Form here ?

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

  • #16
    Re: Is there a tutorial for php script for Form here ?

    He's simply waiting me to give him the script......

    OR, at least that's what i thought when i posted
    Last edited by navaldesign; 04-30-2006, 05:24 PM.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

    Comment


    • #17
      Re: Is there a tutorial for php script for Form here ?

      David

      I believe that I had corrected my tutorial some time ago- I had re-vamped it and the link above should have taken to the new one. In the new one
      the pages have different names.

      The new one has a Revised 4/20/06 in the upper left corner. Is this the one that you were talking about?

      Just trying to figure out what happened.

      Give me an e-mail if you have time.

      Andy
      PHP- is a blast!

      Comment


      • #18
        Re: Is there a tutorial for php script for Form here ?

        Hi WSBlue, your http://www.beruang.biz/formulir.htm needs some corrections. Rename the second upload field. It has the same name as the first one. Also correct the tahunpembuatan] field. Take the ] off. Republish and let me know.
        Navaldesign
        Logger Lite: Low Cost, Customizable, multifeatured Login script
        Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
        DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
        Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

        Comment


        • #19
          Re: Is there a tutorial for php script for Form here ?

          Hi WSBlue,
          here is the script for your contact form page:

          <?php
          // Receiving variables
          @$hubnamalengkap = addslashes($_POST['hubnamalengkap']);
          @$hubalamat = addslashes($_POST['hubalamat']);
          @$hubtelhp = addslashes($_POST['hubtelhp']);
          @$hubemail = addslashes($_POST['hubemail']);
          @$hubtanyasaran = addslashes($_POST['hubtanyasaran']);
          // Validation
          if (strlen($hubnamalengkap) == 0 )
          {
          header("Location: error_page.html");
          exit;
          }
          if (strlen($hubalamat) == 0 )
          {
          header("Location: error_page.html");
          exit;
          }
          if (strlen($hubtelhp) == 0 )
          {
          header("Location: error_page.html");
          exit;
          }
          if (strlen($hubemail) == 0 )
          {
          header("Location: error_page.html");
          exit;
          }
          if (strlen($hubtanyasaran) == 0 )
          {
          header("Location: error_page.html");
          exit;
          }
          //Sending Email to form owner
          $pfw_header = "From: $hubemail\n"
          . "Reply-To: $hubemail\n";
          $pfw_subject = "Put your Subject here";//Change it as you wish
          $pfw_email_to = "youremail@beruang.biz"; //Put your own email in your account
          $pfw_message = "hubnamalengkap: $hubnamalengkap\n"
          . "hubalamat: $hubalamat\n"
          . "hubtelhp: $hubtelhp\n"
          . "hubemail: $hubemail\n"
          . "hubtanyasaran: $hubtanyasaran\n";
          *****($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ;
          header("Location: thankyou_page.html");
          ?>

          Please create the following pages in MSHTML: "error_page" and "thankyou_page". These must be simply BV pages. In the error page insert also a "Back" button to get them back in the form. To do so insert a html box in your page and paste there the following code:

          <FORM>
          <input type="button" class="but" value="< BACK TO THE FORM " onclick=history.go(-1)>
          </FORM>


          If you wish you may change the header("Location: error_page.html");
          after each field validation line (see above in red) creating separate error pages for every type of error.

          Copy the code and paste it in notepad. After you have made the changes, go to "Save as", choose File Type "All files" and save it as "hubung.php". Also please change the encoding type in "multipart/form data". Save and republish your form, and upload the script on your site, in the same folder as the form itself.
          Navaldesign
          Logger Lite: Low Cost, Customizable, multifeatured Login script
          Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
          DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
          Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

          Comment


          • #20
            Re: Is there a tutorial for php script for Form here ?

            Andy....
            Email on its way.....
            Have fun
            Regards..... David

            Step by Step Visual Tutorials for the complete beginner
            Newbies / Beginners Forum
            FREE Membership Login Scripts: - Meta Tags Analyzer
            My Social Networking Site - Free Contact Forms
            Finished your New website!! Now get it noticed Here:

            Comment


            • #21
              Re: Is there a tutorial for php script for Form here ?

              Originally posted by navaldesign
              Hi WSBlue,
              here is the script for your contact form page:

              <?php
              // Receiving variables
              @$hubnamalengkap = addslashes($_POST['hubnamalengkap']);
              @$hubalamat = addslashes($_POST['hubalamat']);
              @$hubtelhp = addslashes($_POST['hubtelhp']);
              @$hubemail = addslashes($_POST['hubemail']);
              @$hubtanyasaran = addslashes($_POST['hubtanyasaran']);
              // Validation
              if (strlen($hubnamalengkap) == 0 )
              {
              header("Location: error_page.html");
              exit;
              }
              if (strlen($hubalamat) == 0 )
              {
              header("Location: error_page.html");
              exit;
              }
              if (strlen($hubtelhp) == 0 )
              {
              header("Location: error_page.html");
              exit;
              }
              if (strlen($hubemail) == 0 )
              {
              header("Location: error_page.html");
              exit;
              }
              if (strlen($hubtanyasaran) == 0 )
              {
              header("Location: error_page.html");
              exit;
              }
              //Sending Email to form owner
              $pfw_header = "From: $hubemail\n"
              . "Reply-To: $hubemail\n";
              $pfw_subject = "Put your Subject here";//Change it as you wish
              $pfw_email_to = "youremail@beruang.biz"; //Put your own email in your account
              $pfw_message = "hubnamalengkap: $hubnamalengkap\n"
              . "hubalamat: $hubalamat\n"
              . "hubtelhp: $hubtelhp\n"
              . "hubemail: $hubemail\n"
              . "hubtanyasaran: $hubtanyasaran\n";
              *****($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ;
              header("Location: thankyou_page.html");
              ?>

              Please create the following pages in MSHTML: "error_page" and "thankyou_page". These must be simply BV pages. In the error page insert also a "Back" button to get them back in the form. To do so insert a html box in your page and paste there the following code:

              <FORM>
              <input type="button" class="but" value="< BACK TO THE FORM " onclick=history.go(-1)>
              </FORM>


              If you wish you may change the header("Location: error_page.html");
              after each field validation line (see above in red) creating separate error pages for every type of error.

              Copy the code and paste it in notepad. After you have made the changes, go to "Save as", choose File Type "All files" and save it as "hubung.php". Also please change the encoding type in "multipart/form data". Save and republish your form, and upload the script on your site, in the same folder as the form itself.
              But I did upoad my php files which from Notepad.
              However, Thousand Thanks for the script above. I will Try to upload it.
              Regards,
              WS Blue
              There was a tutorial provided by BV. From BV webuilder ... View > Page HTML > (copy scipt) Paste script in the Inside Body Tag. BUT nothing can't be pasted from the script I copied, do I have to type up the script? Please advise!

              Comment


              • #22
                Re: Is there a tutorial for php script for Form here ?

                Nice to see, using Military Police officer ranking now.

                Comment


                • #23
                  Re: Is there a tutorial for php script for Form here ?

                  Please DO NOT mix the script i gave you with any html page. It has to be uploaded using BlueFTP according to my instructions. Copy the code from my post above, then paste it in notepad, and do all the rest as instructed. If you have any problems, use MY FORM to give me your loggin info and i will do it for you.
                  Navaldesign
                  Logger Lite: Low Cost, Customizable, multifeatured Login script
                  Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
                  DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
                  Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

                  Comment


                  • #24
                    Re: Is there a tutorial for php script for Form here ?

                    Originally posted by navaldesign
                    Hi WSBlue,
                    here is the script for your contact form page:

                    <?php
                    // Receiving variables
                    @$hubnamalengkap = addslashes($_POST['hubnamalengkap']);
                    @$hubalamat = addslashes($_POST['hubalamat']);
                    @$hubtelhp = addslashes($_POST['hubtelhp']);
                    @$hubemail = addslashes($_POST['hubemail']);
                    @$hubtanyasaran = addslashes($_POST['hubtanyasaran']);
                    // Validation
                    if (strlen($hubnamalengkap) == 0 )
                    {
                    header("Location: error_page.html");
                    exit;
                    }
                    if (strlen($hubalamat) == 0 )
                    {
                    header("Location: error_page.html");
                    exit;
                    }
                    if (strlen($hubtelhp) == 0 )
                    {
                    header("Location: error_page.html");
                    exit;
                    }
                    if (strlen($hubemail) == 0 )
                    {
                    header("Location: error_page.html");
                    exit;
                    }
                    if (strlen($hubtanyasaran) == 0 )
                    {
                    header("Location: error_page.html");
                    exit;
                    }
                    //Sending Email to form owner
                    $pfw_header = "From: $hubemail\n"
                    . "Reply-To: $hubemail\n";
                    $pfw_subject = "Put your Subject here";//Change it as you wish
                    $pfw_email_to = "youremail@beruang.biz"; //Put your own email in your account
                    $pfw_message = "hubnamalengkap: $hubnamalengkap\n"
                    . "hubalamat: $hubalamat\n"
                    . "hubtelhp: $hubtelhp\n"
                    . "hubemail: $hubemail\n"
                    . "hubtanyasaran: $hubtanyasaran\n";
                    *****($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ;
                    header("Location: thankyou_page.html");
                    ?>



                    If you wish you may change the header("Location: error_page.html");
                    after each field validation line (see above in red) creating separate error pages for every type of error.

                    Copy the code and paste it in notepad. After you have made the changes, go to "Save as", choose File Type "All files" and save it as "hubung.php". Also please change the encoding type in "multipart/form data". Save and republish your form, and upload the script on your site, in the same folder as the form itself.
                    HI! I WOULD LIKE TO ASK MORE FOR SOMETHING THAT I DON'T UNDERSTAND:
                    YOU WROTE THIS:
                    Please create the following pages in MSHTML: "error_page" and "thankyou_page". (I ASK: WHAT IS MSHTML?)These must be simply BV pages. In the error page insert also a "Back" button to get them back in the form (I ASK: IS IT LIKE THE SUBMIT BUTTON?). To do so insert a html box in your page and paste there the following code: (I ASK: HOW TO INSERT A HTML BOX IN MY PAGE AND PASTE IN MY PAGE, WHERE TO CLICK? )

                    <FORM>
                    <input type="button" class="but" value="< BACK TO THE FORM " onclick=history.go(-1)>
                    </FORM>

                    (I ASK: COULD YOU PLEASE EXPLAIN ONE MORE TIME.)
                    SO SORRY, FOR MY SLOW ABSORPTION. WSBLUE)

                    Comment


                    • #25
                      Re: Is there a tutorial for php script for Form here ?

                      I saw that your pages are not made in BV. I'm i wrong?
                      If you use BV, it's the top button in the left hand toolbar. Click on it. A window will open. Copy the code i gave you for the button, and paste it in that window. Close it, and you can then move the html box to place it anywhere you like in your page.
                      Navaldesign
                      Logger Lite: Low Cost, Customizable, multifeatured Login script
                      Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
                      DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
                      Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

                      Comment


                      • #26
                        Re: Is there a tutorial for php script for Form here ?

                        Originally posted by navaldesign
                        I saw that your pages are not made in BV. I'm i wrong?
                        If you use BV, it's the top button in the left hand toolbar. Click on it. A window will open. Copy the code i gave you for the button, and paste it in that window. Close it, and you can then move the html box to place it anywhere you like in your page.

                        Yes. I got it, Thank you.
                        when previewed it says : < Back to form.
                        Can I change "< Back to Form" into my language?
                        If possible, How to do it?

                        BV is the ONLY one which get me to have interest to design my own web.

                        Comment


                        • #27
                          Re: Is there a tutorial for php script for Form here ?

                          Hi WSblue, i didn't know if you are an indonesian, apa kabar? i like your car advertise site, of course you can change to any language. make it like this:
                          Code:
                          [COLOR=#0000ff]<FORM>
                          <input type="button" class="but" value="< KEMBALI KE FORM" onclick=history.go(-1)>
                          </FORM>[/COLOR]
                          or change with watever you want.

                          Ooooops, Major, Lieutenant, general ? is it new system? wow i am a Major
                          .
                          .
                          Nyoman

                          Comment


                          • #28
                            Re: Is there a tutorial for php script for Form here ?

                            Originally posted by Nyoman
                            Hi WSblue, i didn't know if you are an indonesian, apa kabar? i like your car advertise site, of course you can change to any language. make it like this:
                            Code:
                            [COLOR=#0000ff]<FORM>
                            <input type="button" class="but" value="< KEMBALI KE FORM" onclick=history.go(-1)>
                            </FORM>[/COLOR]
                            or change with watever you want.

                            Ooooops, Major, Lieutenant, general ? is it new system? wow i am a Major
                            Terima kasih / Thank you for liking my site. Want to do something like this in Bali? Bapak Nyoman masih tinggal di Bali?
                            I am in Jakarta and have been to Bali only 3 times.
                            My e mail is necon2000******.com
                            > Yes, I got it. Now I can show it in Indonesian.
                            > Why, the script that I save in NOTEPAD like hubung.php but end up being saved in Macromedia Dreamweaver.
                            > Actually, I don't want to use a BAR to tell : BACK TO FORM (Balik ke Formulir) when required field not being filled
                            BUT From here, where I did in BV.
                            Can I do it and How?
                            Maaf!


                            Masih Ada Bagian Yang Belum Di-isi.
                            Silahkan Balik Ke Formulir Dan

                            Mengisi Bagian Yang Bertanda "
                            *".

                            Terima Kasih.



                            (Sorry! * Required Field Must Be Filled. Please go back to Form)
                            Thank you.
                            Peace,
                            WS_Blue

                            Comment


                            • #29
                              Re: Is there a tutorial for php script for Form here ?

                              How can a .php script , which is simply a text file, uploaded with FTP, can end up to have anything with MS html Editor or Macromedia ?

                              How do you upload (or publish) your pages? And are they built in BV or else? I'm still confused on that. How can you use BV directly if you're not hosting your site with Vodahost ?
                              Navaldesign
                              Logger Lite: Low Cost, Customizable, multifeatured Login script
                              Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
                              DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
                              Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

                              Comment


                              • #30
                                Re: Is there a tutorial for php script for Form here ?

                                Originally posted by navaldesign
                                How can a .php script , which is simply a text file, uploaded with FTP, can end up to have anything with MS html Editor or Macromedia ?

                                How do you upload (or publish) your pages? And are they built in BV or else? I'm still confused on that.
                                How can you use BV directly if you're not hosting your site with Vodahost ?
                                ~Yes. I copied your provided scripts and pasted it in a Notepad. save as: File name: hubungikami.php and Save as type "all files" and it is in Macromedia, not in a Notepad. Shall I remove away Macromedia programme from my PC?

                                ~ I open the file where created my site using BV. copy of all of them and paste them in httpdocs provided by local server.

                                <?php
                                // Receiving variables
                                @$hubnamalengkap = addslashes($_POST['hubnamalengkap']);
                                @$hubalamat = addslashes($_POST['hubalamat']);
                                @$hubtelhp = addslashes($_POST['hubtelhp']);
                                @$hubemail = addslashes($_POST['hubemail']);
                                @$hubtanyasaran = addslashes($_POST['hubtanyasaran']);
                                // Validation
                                if (strlen($hubnamalengkap) == 0 )
                                {
                                header("Location: error.htm");
                                exit;
                                }
                                if (strlen($hubalamat) == 0 )
                                {
                                header("Location: error.htm");
                                exit;
                                }
                                if (strlen($hubtelhp) == 0 )
                                {
                                header("Location: error.htm");
                                exit;
                                }
                                if (strlen($hubemail) == 0 )
                                {
                                header("Location: error.htm");
                                exit;
                                }
                                if (strlen($hubtanyasaran) == 0 )
                                {
                                header("Location: error.htm");
                                exit;
                                }
                                //Sending Email to form owner
                                $pfw_header = "From: $hubemail\n"
                                . "Reply-To: $hubemail\n";
                                $pfw_subject = "Saran & Pertanyaan";
                                $pfw_email_to = "beruang.biz******.com";
                                $pfw_message = "hubnamalengkap: $hubnamalengkap\n"
                                . "hubalamat: $hubalamat\n"
                                . "hubtelhp: $hubtelhp\n"
                                . "hubemail: $hubemail\n"
                                . "hubtanyasaran: $hubtanyasaran\n";
                                *****($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ;
                                header("Location: confirmation.htm");
                                ?>

                                I still can't get my contact (hubungikami) page to my error page or confirmation page yet. Sorry! Any different betwen htm and html?

                                http://www.beruang.biz
                                http://www.beruang.biz/error.htm
                                http://www.beruang.biz/confirmation.htm

                                Thank you. Regards, WS Blue

                                Comment

                                Working...
                                X