+ Reply to Thread
Results 1 to 21 of 21

Thread: Form Help
      
   

  1. #1
    abcdme is offline Sergeant
    Join Date
    Mar 2006
    Posts
    33

    Question Form Help

    Hi all,

    Thank you for your time first of all. I need help making this form work:
    http://secure.getcanvased.co.nz/order/

    The problem is this: I used to use Blue Voda to make my pages, now I use Dreamweaver. I used to be able to have someone upload an image but now the image location in the computer is all that comes up.

    I am unsure how to fix this. If you would like the page code, I can provide any of it or even the whole file.

    Thank you for your time.

    www.dwat.co.nz
    www.dwat-worldwide.com
    www.getcanvased.co.nz
    my sites which are still not very good :( my bad!
    Go Vodahost!!!

  2. #2
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,060

    Default Re: Form Help

    We need the order.php script code, as this is the one processing your form info. Also, has your scripts instructions to set the encoding type in "application/x-www-form-urlencoded" ?
    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!


  3. #3
    abcdme is offline Sergeant
    Join Date
    Mar 2006
    Posts
    33

    Default Re: Form Help

    Hi, thanks for the reply. I have now changed it back to 'application/x-www-form-urlencoded' as I had changed this between attempts to get it working.

    The code in the page itself is:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Get Canvased Secure Order Form</title>
    <style type="text/css">
    <!--
    .style4 {
    font-size: 12px;
    font-style: italic;
    }
    body,td,th {
    color: #FFFFFF;
    }
    body {
    background-color: #000000;
    }
    -->
    </style>
    </head>
    <body>
    <h1 align="center">Get Canvased Order Page</h1>
    <p align="center">Please fill in all possible fields to make your order more user friendly and manageable for the staff.</p>
    <form action="http://secure.getcanvased.co.nz/order/order.php" method="POST" enctype="application/x-www-form-urlencoded" name="Get Canvased Online order form" id="Get Canvased Online order form">
    <label>Name:
    <input name="Name" type="text" id="Name" title="Name" />
    </label>
    <p>
    <label>Address:
    <input name="Address" type="text" id="Address" title="Address" />
    </label>
    </p>
    <p>
    <label>Town:
    <input name="Town" type="text" id="Town" title="Town" />
    </label>
    </p>
    <p>
    <label>Area Code:
    <input name="Area Code" type="text" id="Area Code" title="Area Code" />
    </label>
    </p>
    <table width="1116" border="1" cellspacing="0" cellpadding="0">
    <tr>
    <th width="235" scope="col">Upload Image </th>
    <th width="279" scope="col">Description</th>
    <th width="179" scope="col">Size</th>
    <th width="192" scope="col">Quantity</th>
    <th width="219" scope="col">Filter</th>
    </tr>
    <tr>
    <td><label>
    <div align="justify">1.
    <input name="Image Upload 1." type="file" id="Image Upload One." title="Image Upload 1." />
    </div>
    </label></td>
    <td><label>
    <div align="center">Please fill in...
    <textarea name="Description 1." cols="" rows="" id="Description 1." title="Description 1." dir="ltr" label="Description 1."></textarea>
    </div>
    </label></td>
    <td><label>
    <div align="center">Please Select
    <select name="Size 1." id="Size 1." title="Size 1.">
    <option>8 x 10</option>
    <option>8 x 12</option>
    <option>12 x 16</option>
    <option>16 x 20</option>
    <option>13 x 33</option>
    <option>16 x 24</option>
    <option>33 x 33</option>
    </select>
    </div>
    </label></td>
    <td><div align="justify">
    <label>Please Select:
    <select name="Quantity 1" id="Quantity 1" title="Quantity 1">
    <option value="0" selected="selected">0</option>
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    <option value="6">6</option>
    <option value="7">7</option>
    <option value="8">8</option>
    <option value="9">9</option>
    </select>
    </label>
    </div></td>
    <td><div align="justify">
    <label>
    <select name="Filter 1" id="Filter 1" title="Filter 1">
    <option value="Black and White">Black and White</option>
    <option value="Colour">Colour</option>
    </select>
    </label>
    </div></td>
    </tr>
    <tr>
    <td><label>
    <div align="justify">2.
    <input name="Image Upload 2" type="file" id="Image Upload 2." title="Image Upload 2." />
    </div>
    </label></td>
    <td><label>
    <div align="center">Please fill in...
    <textarea name="Description 2." cols="" rows="" id="Description 1." title="Description 1." dir="ltr" label="Description 1."></textarea>
    </div>
    </label></td>
    <td><div align="center">Please Select
    <select name="Size 2." id="Size 2." title="Size 2.">
    <option>8 x 10</option>
    <option>8 x 12</option>
    <option>12 x 16</option>
    <option>16 x 20</option>
    <option>13 x 33</option>
    <option>16 x 24</option>
    <option>33 x 33</option>
    </select>
    </div></td>
    <td><div align="justify">
    <label>Please Select:
    <select name="quantity 2" id="quantity 2" title="quantity 2">
    <option value="0" selected="selected">0</option>
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    <option value="6">6</option>
    <option value="7">7</option>
    <option value="8">8</option>
    <option value="9">9</option>
    </select>
    </label>
    </div></td>
    <td><div align="justify">
    <select name="Filter 2" id="Filter 2" title="Filter 2">
    <option value="Black and White">Black and White</option>
    <option value="Colour">Colour</option>
    </select>
    </div></td>
    </tr>
    <tr>
    <td><label>
    <div align="justify">3.
    <input name="Image Upload 3" type="file" id="Image Upload 3." title="Image Upload 3." />
    </div>
    </label></td>
    <td><label>
    <div align="center">Please fill in...
    <textarea name="Description 3." cols="" rows="" id="Description 3." title="Description 3." dir="ltr" label="Description 3."></textarea>
    </div>
    </label></td>
    <td><div align="center">
    <div align="center">Please Select
    <select name="Size 3." size="1" id="Size 3." title="Size 3.">
    <option>8 x 10</option>
    <option>8 x 12</option>
    <option>12 x 16</option>
    <option>16 x 20</option>
    <option>13 x 33</option>
    <option>16 x 24</option>
    <option>33 x 33</option>
    </select>
    </div>
    </div></td>
    <td><div align="justify" id="Quantity 3" title="Quantity 3">
    <label>Please Select:
    <select name="Quantity 3" size="1">
    <option value="0" selected="selected">0</option>
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    <option value="6">6</option>
    <option value="7">7</option>
    <option value="8">8</option>
    <option value="9">9</option>
    </select>
    </label>
    </div></td>
    <td><div align="justify">
    <select name="Filter 3" size="1" id="Filter 3" title="Filter 3">
    <option value="Black and White">Black and White</option>
    <option value="Colour">Colour</option>
    </select>
    </div></td>
    </tr>
    <tr>
    <td><label>
    <div align="justify">4.
    <input name="Image Upload 4" type="file" id="Image Upload 4." title="Image Upload 4." />
    </div>
    </label></td>
    <td><label>
    <div align="center">Please fill in...
    <textarea name="Description 4." cols="" rows="" id="Description 4." title="Description 4." dir="ltr" label="Description 4."></textarea>
    </div>
    </label></td>
    <td><div align="center">
    <div align="center">Please Select
    <select name="Size 4." size="1" id="Size 4." title="Size 4.">
    <option>8 x 10</option>
    <option>8 x 12</option>
    <option>12 x 16</option>
    <option>16 x 20</option>
    <option>13 x 33</option>
    <option>16 x 24</option>
    <option>33 x 33</option>
    </select>
    </div>
    </div></td>
    <td><div align="justify" id="Quantity 4" title="Quantity 4">
    <label>Please Select:
    <select name="Quantity 4" size="1">
    <option value="0" selected="selected">0</option>
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    <option value="6">6</option>
    <option value="7">7</option>
    <option value="8">8</option>
    <option value="9">9</option>
    </select>
    </label>
    </div></td>
    <td><div align="justify">
    <select name="Filter 4" size="1" id="Filter 4" title="Filter 4">
    <option value="Black and White">Black and White</option>
    <option value="Colour">Colour</option>
    </select>
    </div></td>
    </tr>
    <tr>
    <td><label>
    <div align="justify">5.
    <input name="Image Upload 5" type="file" id="Image Upload 5." title="Image Upload 5." />
    </div>
    </label></td>
    <td><label>
    <div align="center">Please fill in...
    <textarea name="Description 5." cols="" rows="" id="Description 5." title="Description 5." dir="ltr" label="Description 5."></textarea>
    </div>
    </label></td>
    <td><div align="center">
    <div align="center">Please Select
    <select name="Size 5." id="Size 5." title="Size 5.">
    <option>8 x 10</option>
    <option>8 x 12</option>
    <option>12 x 16</option>
    <option>16 x 20</option>
    <option>13 x 33</option>
    <option>16 x 24</option>
    <option>33 x 33</option>
    </select>
    </div>
    </div></td>
    <td><div align="justify">
    <label>Please Select:
    <select name="Quantity 5" size="1" id="Quantity 5" title="Quantity 5">
    <option value="0" selected="selected">0</option>
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    <option value="6">6</option>
    <option value="7">7</option>
    <option value="8">8</option>
    <option value="9">9</option>
    </select>
    </label>
    </div></td>
    <td><div align="justify">
    <select name="Filter 5" id="Filter 5" title="Filter 5">
    <option value="Black and White">Black and White</option>
    <option value="Colour">Colour</option>
    </select>
    </div></td>
    </tr>
    <tr>
    <td><label>
    <div align="justify">6.
    <input name="Image Upload 6" type="file" id="Image Upload 6." title="Image Upload 6." />
    </div>
    </label></td>
    <td><label>
    <div align="center">Please fill in...
    <textarea name="Description 6." cols="" rows="" id="Description 6." title="Description 6." dir="ltr" label="Description 6."></textarea>
    </div>
    </label></td>
    <td><div align="center">
    <div align="center">Please Select
    <select name="Size 6." id="Size 6." title="Size 6.">
    <option>8 x 10</option>
    <option>8 x 12</option>
    <option>12 x 16</option>
    <option>16 x 20</option>
    <option>13 x 33</option>
    <option>16 x 24</option>
    <option>33 x 33</option>
    </select>
    </div>
    </div></td>
    <td><div align="justify">
    <label>Please Select:
    <select name="Quantity 6" size="1" id="Quantity 6" title="Quantity 6">
    <option value="0" selected="selected">0</option>
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    <option value="6">6</option>
    <option value="7">7</option>
    <option value="8">8</option>
    <option value="9">9</option>
    </select>
    </label>
    </div></td>
    <td><div align="justify">
    <select name="Filter 6" id="Filter 6" title="Filter 6">
    <option value="Black and White">Black and White</option>
    <option value="Colour">Colour</option>
    </select>
    </div></td>
    </tr>
    <tr>
    <td><label>
    <div align="justify">7.
    <input name="Image Upload 7" type="file" id="Image Upload 7" title="Image Upload 7." />
    </div>
    </label></td>
    <td><label>
    <div align="center">Please fill in...
    <textarea name="Description 7." cols="" rows="" id="Description 7." title="Description 7." dir="ltr" label="Description 7."></textarea>
    </div>
    </label></td>
    <td><div align="center">Please Select
    <select name="Size 7." id="Size 7." title="Size 7.">
    <option>8 x 10</option>
    <option>8 x 12</option>
    <option>12 x 16</option>
    <option>16 x 20</option>
    <option>13 x 33</option>
    <option>16 x 24</option>
    <option>33 x 33</option>
    </select>
    </div></td>
    <td><div align="justify">
    <label>Please Select:
    <select name="Quantity 7" size="1" id="Quantity 7" title="Quantity 7">
    <option value="0" selected="selected">0</option>
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    <option value="6">6</option>
    <option value="7">7</option>
    <option value="8">8</option>
    <option value="9">9</option>
    </select>
    </label>
    </div></td>
    <td><div align="justify">
    <select name="Filter 7" id="Filter 7" title="Filter 7">
    <option value="Black and White">Black and White</option>
    <option value="Colour">Colour</option>
    </select>
    </div></td>
    </tr>
    <tr>
    <td><label>
    <div align="justify">8.
    <input name="Image Upload 8" type="file" id="Image Upload 8" title="Image Upload 8." />
    </div>
    </label></td>
    <td><label>
    <div align="center">Please fill in...
    <textarea name="Description 8." cols="" rows="" id="Description 8." title="Description 8." dir="ltr" label="Description 8."></textarea>
    </div>
    </label></td>
    <td><div align="center">
    <div align="center">Please Select
    <select name="Size 8." id="Size 8." title="Size 8.">
    <option>8 x 10</option>
    <option>8 x 12</option>
    <option>12 x 16</option>
    <option>16 x 20</option>
    <option>13 x 33</option>
    <option>16 x 24</option>
    <option>33 x 33</option>
    </select>
    </div>
    </div></td>
    <td><div align="justify">
    <label>Please Select:
    <select name="Quantity 8" size="1" id="Quantity 8" title="Quantity 8">
    <option value="0" selected="selected">0</option>
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    <option value="6">6</option>
    <option value="7">7</option>
    <option value="8">8</option>
    <option value="9">9</option>
    </select>
    </label>
    </div></td>
    <td><div align="justify">
    <select name="Filter 8" id="Filter 8" title="Filter 8">
    <option value="Black and White">Black and White</option>
    <option value="Colour">Colour</option>
    </select>
    </div></td>
    </tr>
    </table>
    <p>Your order will be received and calculated by a staff member. You will be sent the total fee and the details for payment. </p>
    <p>Method of Payment: <span class="style4">(please select one)</span></p>
    <p>
    <label>
    <input name="Payment" type="radio" id="Internet Banking Payment" title="Internet Banking Payment" value="Internet Banking" />
    Internet Banking</label>
    </p>
    <p>
    <input name="Payment" type="radio" id="Cheque Payment" title="Cheque Payment" value="Cheque" />
    <label for="radiobutton">Cheque</label>
    </p>
    <p>
    <input name="Payment" type="radio" id="Cash Payment" title="Cash Payment" value="Cash" />
    <label for="radio">Cash</label>
    </p>
    <p>
    <label for="textfield">Phone Number</label>
    <input name="Phone Number" type="text" id="Phone Number" title="Phone Number" />
    </p>
    <p>
    <label for="textfield">Email Address</label>
    <input name="Email Address" type="text" id="Email Address" title="Email Address" />
    </p>
    <p>
    <input name="Agreement" type="checkbox" id="I agree to all stated" title="I agree to all stated" value="Agreed" />
    <label for="checkbox">I agree with the terms of use, I have also validated that all of the information provided is correct.</label>
    </p>
    <p>
    <input type="submit" name="Submit" value="Submit" />
    <input name="Reset" type="reset" id="Submit" value="Reset" />
    <label for="Submit"><span class="style4">Caution: This will delete all data entered in the form.</span></label>
    </p>
    </form>
    <p align="left">&nbsp; </p>
    </body>
    </html>


    ================================================== =======

    The code in the PHP script that the page leads to is:
    <HTML>
    <HEAD>
    <TITLE>We have succesfully processed your order</TITLE>
    </HEAD>
    <BODY>
    <H2>Thanks for your order! We will get back to you with payment details soon.</H2>

    <?PHP
    $email = $HTTP_POST_VARS[email];
    $mailto = "?????@??????.nz";
    $mailsubj = "Order 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>
    </HTML>

    ================================================== =============

    It is the same one as that which i used with the original Blue-Voda form, and I have changed nothing on it since then.

    Thanks for your help,
    Daniel
    www.dwat.co.nz
    www.dwat-worldwide.com
    www.getcanvased.co.nz

  4. #4
    abcdme is offline Sergeant
    Join Date
    Mar 2006
    Posts
    33

    Default Re: Form Help

    My Mistake, the previous code is not the correct code, please use this one, the .php code remains the same.






    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Get Canvased Secure Order Form</title>
    <style type="text/css">
    <!--
    .style4 {
    font-size: 12px;
    font-style: italic;
    }
    body,td,th {
    color: #FFFFFF;
    }
    body {
    background-color: #000000;
    }
    -->
    </style>
    </head>
    <body>
    <h1 align="center">Get Canvased Order Page</h1>
    <p align="center">Please fill in all possible fields to make your order more user friendly and manageable for the staff.</p>
    <form action="http://secure.getcanvased.co.nz/order/order.php" method="post" enctype="multipart/form-data" name="Get Canvased Orer Form" target="_self" id="Get Canvased Orer Form">
    <label>Name:
    <input name="Name" type="text" id="Name" title="Name" />
    </label>
    <p>
    <label>Address:
    <input name="Address" type="text" id="Address" title="Address" />
    </label>
    </p>
    <p>
    <label>Town:
    <input name="Town" type="text" id="Town" title="Town" />
    </label>
    </p>
    <p>
    <label>Area Code:
    <input name="Area Code" type="text" id="Area Code" title="Area Code" />
    </label>
    </p>
    <table width="1116" border="1" cellspacing="0" cellpadding="0">
    <tr>
    <th width="235" scope="col">Upload Image </th>
    <th width="279" scope="col">Description</th>
    <th width="179" scope="col">Size</th>
    <th width="192" scope="col">Quantity</th>
    <th width="219" scope="col">Filter</th>
    </tr>
    <tr>
    <td><label>
    <div align="justify">1.
    <input name="Image Upload 11." type="file" id="Image Upload One." title="Image Upload 1." />
    </div>
    </label></td>
    <td><label>
    <div align="center">Please fill in...
    <textarea name="Description 1." cols="" rows="" id="Description 1." title="Description 1." dir="ltr" label="Description 1."></textarea>
    </div>
    </label></td>
    <td><label>
    <div align="center">Please Select
    <select name="Size 1." id="Size 1." title="Size 1.">
    <option>8 x 10</option>
    <option>8 x 12</option>
    <option>12 x 16</option>
    <option>16 x 20</option>
    <option>13 x 33</option>
    <option>16 x 24</option>
    <option>33 x 33</option>
    </select>
    </div>
    </label></td>
    <td><div align="justify">
    <label>Please Select:
    <select name="Quantity 1" id="Quantity 1" title="Quantity 1">
    <option value="0" selected="selected">0</option>
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    <option value="6">6</option>
    <option value="7">7</option>
    <option value="8">8</option>
    <option value="9">9</option>
    </select>
    </label>
    </div></td>
    <td><div align="justify">
    <label>
    <select name="Filter 1" id="Filter 1" title="Filter 1">
    <option value="Black and White">Black and White</option>
    <option value="Colour">Colour</option>
    </select>
    </label>
    </div></td>
    </tr>
    <tr>
    <td><label>
    <div align="justify">2.
    <input name="Image Upload 12" type="file" id="Image Upload 2." title="Image Upload 2." />
    </div>
    </label></td>
    <td><label>
    <div align="center">Please fill in...
    <textarea name="Description 2." cols="" rows="" id="Description 1." title="Description 1." dir="ltr" label="Description 1."></textarea>
    </div>
    </label></td>
    <td><div align="center">Please Select
    <select name="Size 2." id="Size 2." title="Size 2.">
    <option>8 x 10</option>
    <option>8 x 12</option>
    <option>12 x 16</option>
    <option>16 x 20</option>
    <option>13 x 33</option>
    <option>16 x 24</option>
    <option>33 x 33</option>
    </select>
    </div></td>
    <td><div align="justify">
    <label>Please Select:
    <select name="quantity 2" id="quantity 2" title="quantity 2">
    <option value="0" selected="selected">0</option>
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    <option value="6">6</option>
    <option value="7">7</option>
    <option value="8">8</option>
    <option value="9">9</option>
    </select>
    </label>
    </div></td>
    <td><div align="justify">
    <select name="Filter 2" id="Filter 2" title="Filter 2">
    <option value="Black and White">Black and White</option>
    <option value="Colour">Colour</option>
    </select>
    </div></td>
    </tr>
    <tr>
    <td><label>
    <div align="justify">3.
    <input name="Image Upload 13" type="file" id="Image Upload 3." title="Image Upload 3." />
    </div>
    </label></td>
    <td><label>
    <div align="center">Please fill in...
    <textarea name="Description 3." cols="" rows="" id="Description 3." title="Description 3." dir="ltr" label="Description 3."></textarea>
    </div>
    </label></td>
    <td><div align="center">
    <div align="center">Please Select
    <select name="Size 3." size="1" id="Size 3." title="Size 3.">
    <option>8 x 10</option>
    <option>8 x 12</option>
    <option>12 x 16</option>
    <option>16 x 20</option>
    <option>13 x 33</option>
    <option>16 x 24</option>
    <option>33 x 33</option>
    </select>
    </div>
    </div></td>
    <td><div align="justify" id="Quantity 3" title="Quantity 3">
    <label>Please Select:
    <select name="Quantity 3" size="1">
    <option value="0" selected="selected">0</option>
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    <option value="6">6</option>
    <option value="7">7</option>
    <option value="8">8</option>
    <option value="9">9</option>
    </select>
    </label>
    </div></td>
    <td><div align="justify">
    <select name="Filter 3" size="1" id="Filter 3" title="Filter 3">
    <option value="Black and White">Black and White</option>
    <option value="Colour">Colour</option>
    </select>
    </div></td>
    </tr>
    <tr>
    <td><label>
    <div align="justify">4.
    <input name="Image Upload 14" type="file" id="Image Upload 4." title="Image Upload 4." />
    </div>
    </label></td>
    <td><label>
    <div align="center">Please fill in...
    <textarea name="Description 4." cols="" rows="" id="Description 4." title="Description 4." dir="ltr" label="Description 4."></textarea>
    </div>
    </label></td>
    <td><div align="center">
    <div align="center">Please Select
    <select name="Size 4." size="1" id="Size 4." title="Size 4.">
    <option>8 x 10</option>
    <option>8 x 12</option>
    <option>12 x 16</option>
    <option>16 x 20</option>
    <option>13 x 33</option>
    <option>16 x 24</option>
    <option>33 x 33</option>
    </select>
    </div>
    </div></td>
    <td><div align="justify" id="Quantity 4" title="Quantity 4">
    <label>Please Select:
    <select name="Quantity 4" size="1">
    <option value="0" selected="selected">0</option>
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    <option value="6">6</option>
    <option value="7">7</option>
    <option value="8">8</option>
    <option value="9">9</option>
    </select>
    </label>
    </div></td>
    <td><div align="justify">
    <select name="Filter 4" size="1" id="Filter 4" title="Filter 4">
    <option value="Black and White">Black and White</option>
    <option value="Colour">Colour</option>
    </select>
    </div></td>
    </tr>
    <tr>
    <td><label>
    <div align="justify">5.
    <input name="Image Upload 15" type="file" id="Image Upload 5." title="Image Upload 5." />
    </div>
    </label></td>
    <td><label>
    <div align="center">Please fill in...
    <textarea name="Description 5." cols="" rows="" id="Description 5." title="Description 5." dir="ltr" label="Description 5."></textarea>
    </div>
    </label></td>
    <td><div align="center">
    <div align="center">Please Select
    <select name="Size 5." id="Size 5." title="Size 5.">
    <option>8 x 10</option>
    <option>8 x 12</option>
    <option>12 x 16</option>
    <option>16 x 20</option>
    <option>13 x 33</option>
    <option>16 x 24</option>
    <option>33 x 33</option>
    </select>
    </div>
    </div></td>
    <td><div align="justify">
    <label>Please Select:
    <select name="Quantity 5" size="1" id="Quantity 5" title="Quantity 5">
    <option value="0" selected="selected">0</option>
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    <option value="6">6</option>
    <option value="7">7</option>
    <option value="8">8</option>
    <option value="9">9</option>
    </select>
    </label>
    </div></td>
    <td><div align="justify">
    <select name="Filter 5" id="Filter 5" title="Filter 5">
    <option value="Black and White">Black and White</option>
    <option value="Colour">Colour</option>
    </select>
    </div></td>
    </tr>
    <tr>
    <td><label>
    <div align="justify">6.
    <input name="Image Upload 16" type="file" id="Image Upload 6." title="Image Upload 6." />
    </div>
    </label></td>
    <td><label>
    <div align="center">Please fill in...
    <textarea name="Description 6." cols="" rows="" id="Description 6." title="Description 6." dir="ltr" label="Description 6."></textarea>
    </div>
    </label></td>
    <td><div align="center">
    <div align="center">Please Select
    <select name="Size 6." id="Size 6." title="Size 6.">
    <option>8 x 10</option>
    <option>8 x 12</option>
    <option>12 x 16</option>
    <option>16 x 20</option>
    <option>13 x 33</option>
    <option>16 x 24</option>
    <option>33 x 33</option>
    </select>
    </div>
    </div></td>
    <td><div align="justify">
    <label>Please Select:
    <select name="Quantity 6" size="1" id="Quantity 6" title="Quantity 6">
    <option value="0" selected="selected">0</option>
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    <option value="6">6</option>
    <option value="7">7</option>
    <option value="8">8</option>
    <option value="9">9</option>
    </select>
    </label>
    </div></td>
    <td><div align="justify">
    <select name="Filter 6" id="Filter 6" title="Filter 6">
    <option value="Black and White">Black and White</option>
    <option value="Colour">Colour</option>
    </select>
    </div></td>
    </tr>
    <tr>
    <td><label>
    <div align="justify">7.
    <input name="Image Upload 17" type="file" id="Image Upload 7" title="Image Upload 7." />
    </div>
    </label></td>
    <td><label>
    <div align="center">Please fill in...
    <textarea name="Description 7." cols="" rows="" id="Description 7." title="Description 7." dir="ltr" label="Description 7."></textarea>
    </div>
    </label></td>
    <td><div align="center">Please Select
    <select name="Size 7." id="Size 7." title="Size 7.">
    <option>8 x 10</option>
    <option>8 x 12</option>
    <option>12 x 16</option>
    <option>16 x 20</option>
    <option>13 x 33</option>
    <option>16 x 24</option>
    <option>33 x 33</option>
    </select>
    </div></td>
    <td><div align="justify">
    <label>Please Select:
    <select name="Quantity 7" size="1" id="Quantity 7" title="Quantity 7">
    <option value="0" selected="selected">0</option>
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    <option value="6">6</option>
    <option value="7">7</option>
    <option value="8">8</option>
    <option value="9">9</option>
    </select>
    </label>
    </div></td>
    <td><div align="justify">
    <select name="Filter 7" id="Filter 7" title="Filter 7">
    <option value="Black and White">Black and White</option>
    <option value="Colour">Colour</option>
    </select>
    </div></td>
    </tr>
    <tr>
    <td><label>
    <div align="justify">8.
    <input name="Image Upload 18" type="file" id="Image Upload 8" title="Image Upload 8." maxlength="10000000" />
    </div>
    </label></td>
    <td><label>
    <div align="center">Please fill in...
    <textarea name="Description 8." cols="" rows="" id="Description 8." title="Description 8." dir="ltr" label="Description 8."></textarea>
    </div>
    </label></td>
    <td><div align="center">
    <div align="center">Please Select
    <select name="Size 8." id="Size 8." title="Size 8.">
    <option>8 x 10</option>
    <option>8 x 12</option>
    <option>12 x 16</option>
    <option>16 x 20</option>
    <option>13 x 33</option>
    <option>16 x 24</option>
    <option>33 x 33</option>
    </select>
    </div>
    </div></td>
    <td><div align="justify">
    <label>Please Select:
    <select name="Quantity 8" size="1" id="Quantity 8" title="Quantity 8">
    <option value="0" selected="selected">0</option>
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    <option value="6">6</option>
    <option value="7">7</option>
    <option value="8">8</option>
    <option value="9">9</option>
    </select>
    </label>
    </div></td>
    <td><div align="justify">
    <select name="Filter 8" id="Filter 8" title="Filter 8">
    <option value="Black and White">Black and White</option>
    <option value="Colour">Colour</option>
    </select>
    </div></td>
    </tr>
    </table>
    <p>Your order will be received and calculated by a staff member. You will be sent the total fee and the details for payment. </p>
    <p>Method of Payment: <span class="style4">(please select one)</span></p>
    <p>
    <label>
    <input name="Payment" type="radio" id="Internet Banking Payment" title="Internet Banking Payment" value="Internet Banking" />
    Internet Banking</label>
    </p>
    <p>
    <input name="Payment" type="radio" id="Cheque Payment" title="Cheque Payment" value="Cheque" />
    <label for="radiobutton">Cheque</label>
    </p>
    <p>
    <input name="Payment" type="radio" id="Cash Payment" title="Cash Payment" value="Cash" />
    <label for="radio">Cash</label>
    </p>
    <p>
    <label for="textfield">Phone Number</label>
    <input name="Phone Number" type="text" id="Phone Number" title="Phone Number" />
    </p>
    <p>
    <label for="textfield">Email Address</label>
    <input name="Email Address" type="text" id="Email Address" title="Email Address" />
    </p>
    <p>
    <input name="Agreement" type="checkbox" id="I agree to all stated" title="I agree to all stated" value="Agreed" />
    <label for="checkbox">I agree with the terms of use, I have also validated that all of the information provided is correct.</label>
    </p>
    <p>
    <input type="submit" name="Submit" value="Submit" />
    <input name="Reset" type="reset" id="Submit" value="Reset" />
    <label for="Submit"><span class="style4">Caution: This will delete all data entered in the form.</span></label>
    </p>
    </form>
    </body>
    </html>

  5. #5
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,060

    Default Re: Form Help

    No, this script is never going to work, as it is only for text fields. To upload images, you need a different script, which, in youe case, is also a bit more complicated than usual. I will nee some time to prepare you one. You also don't have any validation here, or lenght checking or Refferer checking or session, to prevent your script from being abused by hackers for spam submission. Stand by.
    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!


  6. #6
    abcdme is offline Sergeant
    Join Date
    Mar 2006
    Posts
    33

    Default Re: Form Help

    Thank you very much for your help : )
    I await any sort of reply over the next few days.

  7. #7
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,060

    Default Re: Form Help

    Hi, hereafter find your script. It uses loops to treat the repeated similar fields, otherwise it would be a very long script. Also. it uses user defined formatting for the message. But you need to make some modifications in your form. Ok, let's start with the script:


    <?php

    // ---- Customized Multiupload script---------------------

    // Receiving variables -----------------------------------
    @$Name = addslashes($_POST['Name']);
    @$Address = addslashes($_POST['Address']);
    @$Town = addslashes($_POST['Town']);
    @$Area_Code = addslashes($_POST['Area_Code']);
    @$Payment = addslashes($_POST['Payment']);
    @$Phone_Number = addslashes($_POST['Phone_Number']);
    @$Email_Address = addslashes($_POST['Email_Address']);
    @$Agreement = addslashes($_POST['Agreement']);
    @$size = addslashes($_POST['size']);
    $size1 = $size/1000;
    //-------Loop for Image relevant variables----------------
    for ($i = 1; $i <= 8; $i++)
    {
    $Image_Upload = "Image_Upload_$i";
    @$Image_Upload_Size[$i]= $_FILES[$Image_Upload]['size'];
    @$Image_Upload_Name[$i]= $_FILES[$Image_Upload]['name'];
    @$Image_Upload_Temp[$i]= $_FILES[$Image_Upload]['tmp_name'];
    @$Description[$i]= addslashes($_POST['Description_'.$i]);
    @$Size[$i] = addslashes($_POST['Size_'.$i]);
    @$Quantity[$i] = addslashes($_POST['Quantity_'.$i]);
    @$Filter[$i] = addslashes($_POST['Filter_'.$i]);
    }
    function RecursiveMkdir($path)
    {
    if (!file_exists($path))
    {
    RecursiveMkdir(dirname($path));
    mkdir($path, 0777);
    }
    }

    // Validation for required field and email and error message creation ----

    if (strlen($Name) == 0 )
    {
    $error .= "The name is missing !\n";
    }
    if (strlen($Address) == 0 )
    {
    $error .= "The address is missing !\n";
    }
    if (strlen($Town) == 0 )
    {
    $error .= "The Town is missing !\n";
    }
    if (strlen($Area_Code) == 0 )
    {
    $error .= "The Area Code is missing !\n";
    }
    if (strlen($Payment) == 0 )
    {
    $error .= "The Payment Method is missing !\n";
    }
    if (strlen($Phone_Number) == 0 )
    {
    $error .= "The Phone Number is missing !\n";
    }
    if (strlen($Agreement) == 0 )
    {
    $error .= "You did not agree with the terms of service !\n";
    }
    if (! ereg('[A-Za-z0-9_-]+\@[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+', $Email_Address))
    {
    $error .= "The Email seems incorrect !\n";
    }
    if (strlen($Email_Address) == 0 )
    {
    $error .= "The Email is missing !\n";
    }
    for ($i = 1; $i <= 8; $i++)
    {
    if ($Image_Upload_Size[$i] > $size)
    {
    $error .= "Size of Image $i is bigger than allowed ($size1 Kb). Please resize it !\n";
    }
    }
    if ($error != "") // Check if there are errors, if yes, load the Error screen

    {
    //------Include error screen template--------------
    ?>
    <HTML>
    <HEAD>
    <STYLE type="text/css">
    div#container
    {
    width: 800px;
    position: relative;
    margin-top: 0px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    }
    body
    {
    text-align: center;
    margin: 0;
    }
    </STYLE>
    </HEAD>
    <BODY bgcolor="#FFFFFF" text="#000000">
    <DIV id="container">
    <DIV style="position:absolute;left:42px;top:3px;width:7 30px;height:99px;z-index:0" align="left">
    <IMG src="background.gif" align="top" alt="" border="0" width="730" height="99">
    </DIV>
    <DIV style="position:absolute;left:359px;top:24px;width :150px;height:55px;z-index:1" align="left">
    <FONT style="font-size:48px" color="#FFFFFF" face="Arial">Error!</FONT>
    </DIV>
    <TEXTAREA name="Error window" style="position:absolute;left:143px;top:146px;widt h:551px;height:343px;z-index:2" rows=25 cols=66><?php echo $error; ?></TEXTAREA>
    <DIV style="position:absolute;left:275px;top:115px;widt h:313px;height:22px;z-index:3" align="left">
    <FONT style="font-size:19px" color="#FF0000" face="Arial">The following Errors have occured !</FONT>
    </DIV>
    <DIV style="position:absolute;left:42px;top:519px;width :730px;height:99px;z-index:4" align="left">
    <IMG src="background.gif" align="top" alt="" border="0" width="730" height="99">
    </DIV>
    <DIV style="position:absolute;left:76px;top:555px;width :467px;height:22px;z-index:5" align="center">
    <FONT style="font-size:19px" color="#FFFFFF" face="Arial">Please use the &quot;Back&quot; button&nbsp; and correct the error.</FONT>
    </DIV>
    <DIV style="position:absolute;left:586px;top:548px;widt h:150px;height:41px;z-index:6" align="center">
    <BUTTON type="button" onClick="history.go(-1)" style="width:150px;height:41px"><P><FONT style="font-size:13px" color="#000000" face="Arial">Back to the form</FONT></P></BUTTON>
    </DIV>
    </DIV>
    </BODY>
    </HTML>
    <?php
    }
    else
    {
    //---Upload the files if they exist---------------------------------
    for ($i = 1; $i <= 8; $i++)
    {

    if ($Image_Upload_Size[$i] < $size and $Image_Upload_Size[$i] >0)
    {
    $uploadFile = "uploads/".$Image_Upload_Name[$i];
    if (!is_dir(dirname($uploadFile)))
    {
    @RecursiveMkdir(dirname($uploadFile));
    }
    else
    {
    @chmod(dirname($uploadFile), 0777);
    }
    @move_uploaded_file( $Image_Upload_Temp[$i] , $uploadFile);
    chmod($uploadFile, 0644);
    $Image_URL[$i] = "http://secure.getcanvased.co.nz/order/order.php/uploads/".$Image_Upload_Name[$i];
    }
    }
    //---------------------------------------------------------------
    // Find Server date and Time
    $date = date("l jS F Y, g:i A");

    // --------Find Browser and IPaddress----------------------------
    $browser =$_SERVER['HTTP_USER_AGENT'];
    $ip = $_SERVER['REMOTE_ADDR'];

    //---------Sending Email to form owner ---------------------------
    $nd_header = "From: $Email_Address\n"
    . "Reply-To: $Email_Address\n";
    $nd_subject = "New submission from Order Page";
    $nd_email_to = "????????@????????.nz";
    $nd_message = "New order:\n"
    . "-------------------------------------------\n"
    . "Name : $Name\n"
    . "Address : $Address\n"
    . "Town : $Town\n"
    . "Area_Code : $Area_Code\n"
    . "Email Address: $Email_Address\n"
    . "Phone Number : $Phone_Number\n"
    . "Agreement : $Agreement\n"
    . "-------------------------------------------\n"
    . "Payment: $Payment\n"
    . "-------------------------------------------\n";
    for ($i = 1; $i <= 8; $i++)
    {
    if (@$Image_Upload_Size[$i] >0)
    {
    $nd_message .= "Link to image $i : $Image_URL[$i] \n"
    . "Description of Image $i: $Description[$i] \n"
    . "Size for Image $i : $Size[$i] \n"
    . "Quantity for Image $i : $Quantity[$i] \n"
    . "Filter for Image $i : $Filter[$i] \n"
    . "-------------------------------------------\n";
    }
    }
    $nd_message .= "Date of Submission : $date\n"
    . "Browser : $browser\n"
    . "IP address : $ip\n"
    . "-------------------------------------------\n"
    . "If the links are broken, please copy \n"
    . "and paste in your browser's address bar \n"
    . "-------------------------------------------\n";
    *****($nd_email_to, $nd_subject ,$nd_message ,$nd_header ) ;
    header("Location: thankyou_page.html");
    }

    ?>
    The steps to follow are:

    1. Change your form "Image Upload" fields. At the moment, they are caled "Image Upload 11", "Image Upload 12", ......... "Image Upload 18"
    Change them in "Image Upload 1", "Image Upload 2", .... "Image Upload 8"
    You must do that in order to have the same uniform numbering as the Quantity, Description, Size, and Filter fields so they can be treated by the loops without changing the loop numbering.

    2. Some of your fields, have a dot "." at the end. F.e. your "Image Upload 11." . Take off ALL dots, from ALL fields. Go through it very carefully, there are many that have the dot at the end. The dot causes problems with my php coding.
    3. Add a HIDDEN field, named "size" . This field will be useful for you to be able to change, if required in the future, the maximum uploaded file size. Make it's value equal to the max file size you want, f.e. if you want your files to be max 500 Kb, the value should be 500000
    4. I'm sending you one gif. It is required for the html code used in the error page. It's called "background.gif" . It is simply a 730 x 99 pixel blue rectangle. Please upload it in the same directory as the script and the form. If you want, however, you can create your own template for the error screen, and put it in place of the one i have created for you, in the script. If you need to do that, let me know and i will send you instructions on how to create it.
    5. At the bottom of the script, you will see that the script, at the end, redirects to a "thankyou_page.html". This is a simple html page, that you must create and upload, in the same directory. Make it as in the example in the bottom of the page.
    6. Copy the code, and paste it in Notepad. After changing your details, (the parts in blue color) Go to File, Save As, select File Type "All files" and save it as order.php . Upload "order.php" on your site, in the same folder as the form.
    7. Create in the same directory, a folder called "uploads" and set it's permissions to 777. It must be called excactly that, "uploads" all lowercase characters.
    8. You can personalize the error messages in this script (parts in red), with whatever you want.

    Please follow these steps EXCACTLY as described or your script could not work.

    Feel free to try the form and the script here. Just leave some of the required fields empty to see the error screen, and then fill it in correctly to see how it redirects the visitor to the thankyou page.

    If you need any help just 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!


  8. #8
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,060

    Default Re: Form Help

    Moved to the Forms Forum
    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!


  9. #9
    abcdme is offline Sergeant
    Join Date
    Mar 2006
    Posts
    33

    Default Re: Form Help

    Hi Naval Design, thank you so much! I will sork on it immediately, and let you know when the final product has been made : )

    Thanks again,
    Daniel

  10. #10
    abcdme is offline Sergeant
    Join Date
    Mar 2006
    Posts
    33

    Default Re: Form Help

    Hi, it all seems to work apart from one thing. All of the data which does not require checking eg. the image and the details of the image (quantity etc.) are not coming through, have i done something wrong again?

    thanks :)

  11. #11
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,060

    Default Re: Form Help

    It should work, as it works for me. Hold, checking your form
    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!


  12. #12
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,060

    Default Re: Form Help

    Change the encoding in "multipart / form data"
    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!


  13. #13
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,060

    Default Re: Form Help

    Seems like you've missed Step 3. I don't see anywhere in your page code the hidden field "size" with it's value set to be the max file size allowed. If there is no size, the script will asume it 0 (zero) and will not upload any file, and, ofcourse, it will not send any of the other details (Description, quantity, size, filter)
    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!


  14. #14
    abcdme is offline Sergeant
    Join Date
    Mar 2006
    Posts
    33

    Default Re: Form Help

    Hi Naval design,

    Thank you so so much! it is great now : ) I really owe you! It is so good now. THat image that you sent me i could not find, however I have made it black as black is part of the theme of the site.

    Have a good day!

    Daniel

  15. #15
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,060

    Default Re: Form Help

    You are very welcome.
    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!


  16. #16
    amerauto's Avatar
    amerauto is offline Corporal
    Join Date
    Dec 2006
    Location
    New York-Helsinki-Moscow
    Posts
    15

    Default Re: Form Help

    Hi Navaldesing,
    For the first thank you very much for your help!
    This script could be very suitable for me, I just don`t need to upload any files --- I need to upload the information from the form`s fields wich will be entering by the visitors to the file or to the folder. Than I could link to the this file or enter forexample an I-frame with this file. The Idea is : when a visitor will submit the information it will immediately appear on the page ( it will be a page with the i-frame contents that file). Hope, that you will understand my funny explanation.
    Thank you very much
    Marina

  17. #17
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,060

    Default Re: Form Help

    Hi Marina,

    ABVFP is a multifeature script. It allows amomg others, file uploads, but this doesn't mean that you need to use that feature.

    Anyway, going back to the second part of your post: what you have shown me in that other site (the form and the page with the car sales display) requires a very specific script. It is not a question of i-frame. The info needs to be stored in a database, and then, a specific script, can make so that listings are displayed in a page. No need for I-frame.
    However, i repewat, this would be a custom made script, database driven and , since this is a commercial site, it also has to have beautifull templates, styled like the rest of your site pages. This is not something you find for free. If you are interested, click on my signature to contact me.
    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!


  18. #18
    amerauto's Avatar
    amerauto is offline Corporal
    Join Date
    Dec 2006
    Location
    New York-Helsinki-Moscow
    Posts
    15

    Default Re: Form Help

    Hi Navaldesign,
    Thank you very much once again!
    Yes, I understand it, the script what my friend has in his car sales site is too complicated and that`s why I want already to use something more simple -- like simple guestbook.There`re just one thing -- they are always have just 4 or 5 fields and I need 11 fields. By the way, the Simple Guestbook at the CPanel (CGI Center) is not working at all. It won`t save even a template.
    So, how do you think --- can I find a script which will "drive" a simple guestbook( may be without a database) or it`s also too hard?
    Anyway, let me say you a BIG-BIG THANKS for your immediate answers and so friendly support!
    Have a nice day
    Marina

  19. #19
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,060

    Default Re: Form Help

    There is NO guestbook or other similar script which is not database driven. At least not one that is worth considering.

    And, a guest book in place of a listing script, seems (in my opinion) highly unprofessional. But ofcourse, its your call.
    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!


  20. #20
    abcdme is offline Sergeant
    Join Date
    Mar 2006
    Posts
    33

    Default Re: Form Help

    Hi Naval,

    Me again. Sorry to be such a pain.

    I have been working on a website for a rowing club that I am in and was wondering if you would have a look at this .php script compared to my page script. I know that there are a few errors and some very very noob ones as I have no experience with php at all!

    This is the location of the whole idea:
    http://hbrc.dwat.co.nz/public_html/pages/contact.html >> upload tab.
    and
    http://hbrc.dwat.co.nz/public_html/p...ion/upload.php >> script derived from yours above, badly edited though!

    This is the php script. HTML script will appear below it.

    PHP Code:
    <?php
     
    // ------ HBRC Upload PHP Script -------------------------
     
    @$fname addslashes($_POST['fname']);
    @
    $lname addslashes($_POST['lname']);
    @
    $access addslashes($_POST['access']);
    @
    $size addslashes($_POST['size']);
    $size1 $size/1000;
    for (
    $i 1$i <= 1$i++)
    {
    $Image_Upload "Image_Upload_$i";
    @
    $Image_Upload_Size[$i]= $_FILES[$Image_Upload]['size'];
    @
    $Image_Upload_Name[$i]= $_FILES[$Image_Upload]['name'];
    @
    $Image_Upload_Temp[$i]= $_FILES[$Image_Upload]['tmp_name'];
    }
    function 
    RecursiveMkdir($path)
    {
    if (!
    file_exists($path))
    {
    RecursiveMkdir(dirname($path));
    mkdir($path0777);
    }
    }
     
    if (
    strlen($fname) == )
    {
    $error .= "We require your first name on this upload. Please enter it.\n";
    }
    if (
    strlen($lname) == )
    {
    $error .= "We require your last name on this upload. Please enter it.\n";
    }
    for (
    $i 1$i <= 1$i++)
    {
    if (
    $Image_Upload_Size[$i] > $size)
    {
    $error .= "The size of your file is bigger than the allowed ($size1 Kb). Please change its size\n";
    }
    }
    if (
    $error != "")
     
    {
     
    ?>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Hawkes Bay Rowing Club Form Validation</title>
    <link href="../css/hbrccss.css" rel="stylesheet" type="text/css" />
    </head>
     
    <body>
    <div id="titlehead">
      <div align="center"><img src="../images/titleheadhbrc.jpg" alt="The Hawkes Bay Rowing Club" width="400" height="80" /></div>
    </div>
    <div id="mainbodyindex">
      <blockquote>
      <div id="mainbodycontents">
          <blockquote class="mainbodyheading">
            <p>There were some errors with your form.</p>
          </blockquote>
          <p><?php echo $error?></p>
        <p>Please use the Back button and correct the error(s).</p>
        <p><button type="button" onClick="history.go(-1)" style="width:150px;height:41px">
        <P class="mainbodysubheading">Back</P>
        </button></p></div>
      </blockquote>
      <div id="bottomlinks">
        <div id="rig***ornerbottomlinks"></div>
        <div id="bottomshadowlinks"></div>
        <div id="leftcornerbottomlinks"></div>
        <div align="center" class="style1"><a href="../../in600_weekdan/index.html" target="_top">Frames</a>/<a href="index.html" target="_top">No Frames</a> | <a href="index.html">Home</a> | <a href="about.html">About</a> | <a href="news.html">News</a> | <a href="training.html">Training</a> | <a href="media.html">Rowers in Action</a>  | <a href="contact.html">Contact</a> | <a href="membersarea.html">Members Area</a> | <a href="links.html">Links</a></div>
      </div>
      <div id="leftsidebody"></div>
      <div id="leftcornertopbody"></div>
      <div id="rightsidebody"></div>
      <div id="rig***ornertopbody"></div>
    </div>
    </body>
    </html>
    <?php
    }
     
    for (
    $i 1$i <= 1$i++)
    {
     
    if (
    $Image_Upload_Size[$i] < $size and $Image_Upload_Size[$i] >0)
    {
    $uploadFile "uploads/".$Image_Upload_Name[$i];
    if (!
    is_dir(dirname($uploadFile)))
    {
    @
    RecursiveMkdir(dirname($uploadFile));
    }
    else
    {
    @
    chmod(dirname($uploadFile), 0777);
    }
    @
    move_uploaded_file$Image_Upload_Temp[$i] , $uploadFile);
    chmod($uploadFile0644);
    $Image_URL[$i] = "http://hbrc.dwat.co.nz/public_html/uploads/".$Image_Upload_Name[$i];
    }
    }
    // Find Server date and Time
    $date date("l jS F Y, g:i A");
     
    // --------Find Browser and IPaddress----------------------------
    $browser =$_SERVER['HTTP_USER_AGENT'];
    $ip $_SERVER['REMOTE_ADDR'];
     
    //---------Sending Email to form owner ---------------------------
    $nd_header "From: $server\n"
    "Reply-To: $noreply@?????.nz\n";
    $nd_subject "New file from the HBRC web site";
    $nd_email_to "????@????";
    $nd_message "New File Uploaded:\n"
    "-------------------------------------------\n"
    "Uploaders First Name: $fname\n"
    "Uploaders Last Name: $lname\n"
    "-------------------------------------------\n"
    "Access to the file: $access\n"
    "-------------------------------------------\n";
    $nd_message .= "Date of Submission : $date\n"
    "Browser : $browser\n"
    "IP address : $ip\n"
    "-------------------------------------------\n"
    &mail($nd_email_to$nd_subject ,$nd_message ,$nd_header ) ;
    header("Location: thankyou.html");
     
    ?>
    HTML Script here....

    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Hawkes Bay Rowing Club - Contact</title>
    <link href="../css/hbrccss.css" rel="stylesheet" type="text/css" />
    <script src="../js/sprytabbedpanels.js" type="text/javascript"></script>
    <script src="../js/spryvalidationtextfield.js" type="text/javascript"></script>
    <script src="../js/spryvalidationselect.js" type="text/javascript"></script>
    <script src="../js/spryvalidationtextarea.js" type="text/javascript"></script>
    <link href="../css/sprytabbedpanels.css" rel="stylesheet" type="text/css" />
    <link href="../css/spryvalidationtextfield.css" rel="stylesheet" type="text/css" />
    <link href="../css/spryvalidationselect.css" rel="stylesheet" type="text/css" />
    <link href="../css/spryvalidationtextarea.css" rel="stylesheet" type="text/css" />
    </head>
     
    <body>
    <div id="titlehead">
      <div align="center"><img src="../images/titleheadhbrc.jpg" alt="The Hawkes Bay Rowing Club" width="400" height="80" /></div>
    </div>
    <div id="mainbodycontact">
      <div id="bottomlinks">
        <div id="rig***ornerbottomlinks"></div>
        <div id="bottomshadowlinks"></div>
        <div id="leftcornerbottomlinks"></div>
        <div align="center" class="style1"><span class="noneunderlinelink"><a href="../index.html" target="_top">Frames</a>/<a href="contact.html" target="_top">No Frames</a> | <a href="index.html">Home</a> | <a href="about.html">About</a> | <a href="news.html">News</a> | <a href="training.html">Training</a> | <a href="media.html">Rowers in Action</a>  | <a href="contact.html">Contact</a> | <a href="membersarea.html">Members Area</a></span> | <a href="links.html">Links</a></div>
      </div>
      <div id="leftsidebody"></div>
      <div id="leftcornertopbody"></div>
      <div id="rightsidebody"></div>
      <div id="rig***ornertopbody"></div>
      <blockquote>
        <div id="mainbodycontents">
          <blockquote class="mainbodyheading">
            <p>Contact the Hawkes Bay Rowing Club Web Site</p>
          </blockquote>
          <p class="mainbodysubheading">You can contact us via <span class="mainbodysubheadingitalic">phone, form,</span> or <span class="mainbodysubheadingitalic">upload a file</span> from this page.</p>
          <div id="TabbedPanels1" class="TabbedPanels">
            <ul class="TabbedPanelsTabGroup">
              <li class="TabbedPanelsTab" tabindex="0">Phone</li>
              <li class="TabbedPanelsTab" tabindex="0">Form</li>
              <li class="TabbedPanelsTab" tabindex="0">Upload</li>
            </ul>
            <div class="TabbedPanelsContentGroup">
              <div class="TabbedPanelsContent"> 
                <span class="italictext">You can easily contact club representatives via phone.            </span>
                <p class="mainbodysubheadingitalic">Contact Numbers:</p>
                <p>Club President: Neil Pulford <br />
                — (06) 877 7777</p>
                <p>Club Secretary: Louise Trautvetter <br />
                —(06) 877 7777</p>
                <p>Club Treasurer: Hewitt Harrison/Jo Tripp<br />
                —(06) 877 7777</p>
                <p>Club Captain: Robert Harrison <br />
                —(06) 877 7777 or (06) 877 7777</p>
                <p>Coaching Coordinator: Dick Tripp <br />
                —(06) 877 7777</p>
              </div>
              <div class="TabbedPanelsContent">
                Use this form to ask a club member a question.
                  <form action="mailto:??????@???????" method="post" enctype="multipart/form-data" name="contact hbrc" id="contact hbrc">
                    <p class="mainbodysubheadingitalic">Contact the Hawkes Bay Rowing Club</p>
                    <p><span id="sprytextfield1">
                      <label>First Name:
                      <input type="text" name="fn" id="fn" />
                      </label>
                    <span class="textfieldRequiredMsg">A value is required.</span></span><br />
                    <span id="sprytextfield2">
                    <label>Last Name:
                    <input type="text" name="ln" id="ln" />
                    </label>
                    <span class="textfieldRequiredMsg">A value is required.</span></span><br />
                    <span id="sprytextfield3">
                    <label>Phone Number:
                    <input type="text" name="pn" id="pn" />
                    </label>
                    <span class="textfieldRequiredMsg">A value is required.</span></span><br />
                    <span id="sprytextfield4">
                    <label>Email Address
                    <input type="text" name="ea" id="ea" />
                    </label>
                    <span class="textfieldRequiredMsg">A value is required.</span></span></p>
                    <p><span id="spryselect1">
                      <label>How would you like us to contact you?
                      <select name="cm" id="cm">
                        <option value="na">None...</option>
                        <option value="email">Email</option>
                        <option value="phone">Phone</option>
                      </select>
                      </label>
                    <span class="selectInvalidMsg">Please select a valid item.</span> <span class="selectRequiredMsg">Please select an item.</span></span>
                      <input name="size1" type="hidden" id="size1" value="88888" />
                      <input name="size" type="hidden" id="size" value="99999" />
                    </p>
                    <p><span id="sprytextarea1">
                      <label>Enter your Query below:
                      <textarea name="qy" id="qy" cols="90" rows="5"></textarea>
                      </label>
                    <span class="textareaRequiredMsg">A value is required.</span></span><br />
                    <label>
                    <input type="submit" name="sm" id="sm" value="Submit" />
                    </label>
                    </p>
                </form>
                <p class="mainbodysubheadingitalic">&nbsp;</p>
              </div>
              <div class="TabbedPanelsContent">
                Use this form to upload a document, image or video. You can upload one file at a time.
                  <form action="../phpvalidation/upload.php" method="post" enctype="multipart/form-data" name="upload" id="upload">
                    <p class="mainbodysubheadingitalic">Upload a/some file(s) to share with the club and/or public.</p>
                    <label>First Name:
                    <input type="text" name="fname" id="fname" />
                    </label>
                    <br />
                    <label>Last name:
                    <input type="text" name="lname" id="lname" />
                    </label>
                    <br />
                    <br />
                    <fieldset>
                    <legend>File(s) to upload</legend>
                    <table width="98%" border="1" id="uploadtable">
                      <tr>
                        <td scope="row"><label>File:
                            <input type="file" name="Image_Upload_1" id="Image_Upload_1" />
                        </label></td>
                      </tr>
                    </table>
                    </fieldset>
                    <p>Choose the area that you would like the file(s) to be displayed in.<br />
                      <label>
                        <input type="radio" name="access" value="pview" id="access_0" />
    Public</label>
                        <br />
                        <label>
                        <input type="radio" name="access" value="mview" id="access_1" />
    Members Only</label>
                    </p>
                    <p>
                      <label>
                      <input type="submit" name="sm" id="sm" value="Submit" />
                      </label>
                    </p>
                </form>
                  <p class="mainbodysubheadingitalic">&nbsp;</p>
              </div>
            </div>
          </div>
          <p>&nbsp;</p>
        </div>
      </blockquote>
    </div>
    <script type="text/javascript">
    <!--
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
    var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
    var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3");
    var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4");
    var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1", {invalidValue:"na"});
    var sprytextarea1 = new Spry.Widget.ValidationTextarea("sprytextarea1");
    //-->
    </script>
    </body>
    </html>
     
    It would be great if we could have your help. Obviously that will not be the final location of the website, we hope to get our own domain name if a company will sponsor it for us.

    I was also wondering, what software do you use to assist you if you use any?

    Thanks for your time.

    Daniel

  21. #21
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,060

    Default Re: Form Help

    I am nt sure what you are trying to acheive here.

    I mean, the forms that you are creating can be built in BV in 10 minutes. The fields can be made required both using BV's built in Javascript validation, and also using ABVFP.
    Using ABVFP all the actions that you are trying to accomplish with your script are made automatically and very easily.

    Unless you are trying to learn some php, in which case go on on this, i don't see the meaning of the above. However, you are mixing parts taken here and there and i don't know what your final result will be.

    Anyway, the loop

    for ($i = 1; $i <= 1; $i++)
    {
    if ($Image_Upload_Size[$i] > $size)
    {

    and the other similar will not work, as you start with $i = 1 and you set $i max <= 1. So there is no loop at all. And, you don't even need one, since you only have one upload field.

    Also, $size is NOT a form sent variable, it must be set directly in the script with a

    $size = 200000;
    line (example for 200 Kb) .

    Furthermore: the part of the form that would mail a member: the mailto: action will NOT, in most cases work.
    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!


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49