Advance blue voda form processor

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • navaldesign
    General & Forum Moderator

    • Oct 2005
    • 12080

    #16
    Re: Advance blue voda form processor

    Use the following:

    <?php

    // Set file size limit

    $size_limit = 1000000; // Set it to whatever size you want in Bytes
    // Receiving variables
    @$email = addslashes($_POST['email']);
    @$upload_Name = $_FILES['upload']['name'];
    $upload_Name_Name = str_replace(" ", "_", $upload_Name);
    @$upload_Size = $_FILES['upload']['size'];
    @$upload_Temp = $_FILES['upload']['tmp_name'];
    @$upload2_Name = $_FILES['upload2']['name'];
    $upload2_Name_Name = str_replace(" ", "_", $upload2_Name);
    @$upload2_Size = $_FILES['upload2']['size'];
    @$upload2_Temp = $_FILES['upload2']['tmp_name'];
    @$upload3_Name = $_FILES['upload3']['name'];
    $upload3_Name_Name = str_replace(" ", "_", $upload3_Name);
    @$upload3_Size = $_FILES['upload3']['size'];
    @$upload3_Temp = $_FILES['upload3']['tmp_name'];

    // Validation for existing file and max file size

    if ($upload_Size>0 and $upload_Size <= $size_limit)
    {
    $uploadFile = "uploads/".$upload_Name ;
    @move_uploaded_file( $upload_Temp , $uploadFile);
    chmod($uploadFile, 0644);
    $upload_URL = "http://www.ideaspersonales.com/uploads/".$upload_Name ;
    }
    if ($upload2_Size>0 and $upload2_Size <= $size_limit)
    {
    $uploadFile = "uploads/".$upload2_Name ;
    @move_uploaded_file( $upload2_Temp , $uploadFile);
    chmod($uploadFile, 0644);
    $upload2_URL = "http://www.ideaspersonales.com/uploads/".$upload2_Name ;
    }
    if ($upload3_Size>0 and $upload3_Size <= $size_limit)
    {
    $uploadFile = "uploads/".$upload3_Name ;
    @move_uploaded_file( $upload3_Temp , $uploadFile);
    chmod($uploadFile, 0644);
    $upload3_URL = "http://www.ideaspersonales.com/uploads/".$upload3_Name ;
    }
    //Sending Email to form owner
    $mailto = "info@ideaspersonales.com";
    $mailsubj = "COTIZACION";
    $mailhead = "From: $email\n";
    reset ($HTTP_POST_VARS);
    $mailbody = "Datos del cliente y link de archivos :\n";
    while (list ($key, $val) = each ($HTTP_POST_VARS))
    {
    if ($key!="submit")
    {
    $mailbody .= "$key : $val\n";
    }
    }
    $mailbody .= "File Link 1: $upload_URL\n";
    $mailbody .= "File Link 2: $upload2_URL\n";
    $mailbody .= "File Link 3: $upload3_URL\n";
    mail($mailto, $mailsubj, $mailbody, $mailhead);
    header("Location: thankyou_page.html");
    ?>

    I have changed the code so if a file name contains whitespaces (blanks) the script will replace them with an underscore, so links should not result broken anymore.

    To change the order of the data in your email (as well as the TAB order of your form fields) follow this simple procedure:

    Right click on the field you want first, and select "Move to front".
    repeat for all fields, in the order you want them to appear. include your submit and reset buttons.

    Why don't you simply use ABVFP ?

    It will do what you want, without need for coding.
    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

    • luis arana
      Private First Class

      • Jul 2007
      • 7

      #17
      Re: Advance blue voda form processor

      I haved trouble trying to install ABVFP, I am going to try it another time and I will keep you informed, I mean the problem was I can&#180;t go to the folder AVBFP that I create on my public folder. I will check my acces to the folder

      Comment

      • luis arana
        Private First Class

        • Jul 2007
        • 7

        #18
        Re: Advance blue voda form processor

        Naval, I have problems installing ABVFP when i try to acces to my data base, i have the following

        Advanced Blue Voda Form Processor Installation
        @ Copyright 2005- 2007 DBTechnosystems.com


        Username for ABVFP:
        Password for ABVFP:
        Database Host:
        Database Name
        Database Username
        Database Password:
        Confirm Password:



        Your Site
        Your Email Address:



        I have read and accept the End User License Agreement








        I am creating a password that is the same for data base password.
        When I create the user i put luisarana but when is created it says it has been created "luisara" now what i have to put in the form?

        thanks for all!

        luis arana

        Comment

        • navaldesign
          General & Forum Moderator

          • Oct 2005
          • 12080

          #19
          Re: Advance blue voda form processor

          The database user creaton wizard will only accept up to 7 characters, so it truncates luisarana to luisara. Not only, but the actual user is cpusername_luisara (where cpusername is your Control Panel username)

          It does the same for the Database name: it becomes cpusername_ABVFP.

          Clicl on the yellow questionmarks to get the help window opened with instructions.
          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

          Working...
          X