jquery validation submit button did not work
<p>I have a code for the validation of the required fields, the validation work when there is a field without value. My problem is that, when i completely filled up all the fields the code doesn't submit my form, its just returning to the form with the values i inputted.</p>

<p>Here's my code:</p>

<pre><code>&lt;script type="text/javascript" language="javascript"&gt;

    $(document).ready(function () {

        var rules = {
            vsi: {
                required: true,
                minlength: 7
            },
            date: "required",
            csname: "required",
            color: "required"
        };
        var messages = {
            vsi: {
                required: "VSI Number must be Inputted.",
                minlength: "VSI Number should be atleast 7 numbers."
            },
            date: "Date is requried",
            csname: "Customer Name is required",
             color: "Color is required"
        };


        var validator
            = new jQueryValidatorWrapper("FormToValidate",
                rules, messages);


        $("#Save").click(function ()
         {
            if (!validator.validate())

                return;
              alert("Data Saved!");

        });
    });

&lt;/script&gt;
</code></pre>

<p>Anyone can modify my code? Thank you!</p>

<p>Here's my index.php</p>

<pre><code>&lt;?php 


    require("common.php"); 


    if(empty($_SESSION['user'])) 
    { 

        header("Location: login.php?attempt=1"); 

    } 


?&gt; 
&lt;?php
include ('connection.php');

?&gt;

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;

&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;&lt;/title&gt;
&lt;link rel="stylesheet" href="css/1.css" type="text/css" media="screen,projection" /&gt;
    &lt;link href="Styles/ui-lightness/jquery-ui-1.8.13.custom.css"
        rel="stylesheet" type="text/css" /&gt;
    &lt;link href="Styles/Site.css" rel="stylesheet" type="text/css" /&gt;

    &lt;script src="Scripts/jquery-1.6.1.min.js" type="text/javascript"&gt;&lt;/script&gt;
    &lt;script src="Scripts/jquery-ui-1.8.13.custom.min.js" type="text/javascript"&gt;&lt;/script&gt;
    &lt;script src="Scripts/jquery.validate.min.js" type="text/javascript"&gt;&lt;/script&gt;
    &lt;script src="Scripts/jquery.validate.wrapper.js" type="text/javascript"&gt;&lt;/script&gt;

&lt;script type="text/javascript" language="javascript"&gt;

    $(document).ready(function () {
        // 1. prepare the validation rules and messages.
        var rules = {
            vsi: {
                required: true,
                minlength: 7
            },
            date: "required",
            csname: "required",
            color: "required"
        };
        var messages = {
            vsi: {
                required: "VSI Number must be Inputted.",
                minlength: "VSI Number should be atleast 7 numbers."
            },
            date: "Date is requried",
            csname: "Customer Name is required",
             color: "Color is required"
        };

        // 2. Initiate the validator
        var validator
            = new jQueryValidatorWrapper("FormToValidate",
                rules, messages);

        // 3. Set the click event to do the validation
        $("#Save").click(function ()
                     {
                        if (!validator.validate())
                           {
                             return;
                            }
                        $('#FormToValidate').submit();
                         alert("Data Saved!");
                          return;

                    });
    });

&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;



&lt;div id="wrapper"&gt;
&lt;div id="innerwrapper"&gt;

        &lt;div id="header"&gt;
          &lt;ul id="nav"&gt;  
          &lt;center&gt;&lt;h3&gt;&lt;font color="#FFFFFF"&gt;Vehicle Sales Transaction Form - UNIT VEHICLE SALES&lt;/font&gt;&lt;/h3&gt;&lt;/center&gt; 
          &lt;/ul&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;

&lt;div id="container"&gt;

&lt;form action="index2.php" method="POST" &gt;
  &lt;a href="form_menu.php" class="small button blue"&gt;MAIN MENU&lt;/a&gt;
  &lt;a href="index.php" class="small button blue"&gt;EDIT&lt;/a&gt;
  &lt;a href="logout.php" class="small button blue"&gt;EXIT&lt;/a&gt;
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;

&lt;input name="vsisearch" type="text" style="padding-bottom:5px" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;input class="small button blue" name="Search" type="submit" id="Search" value="Search" /&gt;&lt;/form&gt;&lt;/div&gt;
 &lt;br/&gt;
     &lt;br/&gt;
&lt;div id="container"&gt;
    &lt;div id="primary"&gt;
      &lt;p&gt;CUSTOMER NAME:&lt;/p&gt;
        &lt;p&gt;VEHICLE UNIT:&lt;/p&gt;
      &lt;p&gt;COLOR:&lt;/p&gt;
        &lt;p&gt;CONDUCTION STICKER:&lt;/p&gt;
        &lt;p&gt;MKTG. PROFESSIONAL:&lt;/p&gt;
        &lt;p&gt;GROUP SALES MANAGER:&lt;/p&gt;
        &lt;p&gt;TYPE OF TRANSACTION:&lt;/p&gt;
      &lt;p&gt;DOWN PAYMENT:&lt;/p&gt;
        &lt;p&gt;AMOUNT FINANCED:&lt;/p&gt;
        &lt;p&gt;DI RATE:&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;
          &lt;label&gt;PREVIOUS &lt;br /&gt;
          &lt;/label&gt;
        &lt;/p&gt;
&lt;/div&gt;
&lt;form id="FormToValidate" action="insert.php" method="POST"&gt;
  &lt;div id="content"&gt;
    &lt;p&gt;
      &lt;input type="text" name="csname" id="csname" style="width:250px" margin-bottom="3px"/&gt;
         &lt;/p&gt;
        &lt;p&gt;
          &lt;select name="units" style="width:254px"&gt;
            &lt;option value="AVANZA 1.3J M/T"&gt;AVANZA 1.3J M/T&lt;/option&gt;
            &lt;option value="AVANZA 1.3E A/T"&gt;AVANZA 1.3E A/T&lt;/option&gt;
            &lt;option value="AVANZA 1.3E M/T"&gt;AVANZA 1.3E M/T&lt;/option&gt;
            &lt;option value="AVANZA 1.5G M/T"&gt;AVANZA 1.5G M/T&lt;/option&gt;
            &lt;option value="AVANZA 1.5G A/T"&gt;AVANZA 1.5G A/T&lt;/option&gt;
            &lt;option value="86 2.0L A/T "&gt;86 2.0L A/T &lt;/option&gt;
            &lt;option value="86 2.0L A/T (White Pearl)"&gt;86 2.0L A/T (White Pearl)&lt;/option&gt;
            &lt;option value="86 2.0L A/T Aero"&gt;86 2.0L A/T Aero&lt;/option&gt;
            &lt;option value="86 2.0L A/T Aero (White Pearl)"&gt;86 2.0L A/T Aero (White Pearl)&lt;/option&gt;
            &lt;option value="86 2.0L M/T "&gt;86 2.0L M/T &lt;/option&gt;
            &lt;option value="86 2.0L M/T (White Pearl)"&gt;86 2.0L M/T (White Pearl)&lt;/option&gt;
            &lt;option value="CAMRY 3.5Q (White Pearl)"&gt;CAMRY 3.5Q (White Pearl)4&lt;/option&gt;
            &lt;option value="CAMRY 3.5Q"&gt;CAMRY 3.5Q&lt;/option&gt;
            &lt;option value="CAMRY 2.5V "&gt;CAMRY 2.5V &lt;/option&gt;
            &lt;option value="CAMRY 2.5G (White Pearl)"&gt;CAMRY 2.5G (White Pearl)&lt;/option&gt;
            &lt;option value="CAMRY 2.5G "&gt;CAMRY 2.5G &lt;/option&gt;
            &lt;option value="PRIUS C "&gt;PRIUS C &lt;/option&gt;
            &lt;option value="PRIUS C (White Pearl)"&gt;PRIUS C (White Pearl)&lt;/option&gt;
            &lt;option value="PRIUS C Full Option"&gt;PRIUS C Full Option&lt;/option&gt;
            &lt;option value="PRIUS C Full Option (White Pearl)"&gt;PRIUS C Full Option (White Pearl)&lt;/option&gt;
            &lt;option value="COROLLA 2.0V AT (white pearl)"&gt;COROLLA 2.0V AT (white pearl)&lt;/option&gt;
            &lt;option value="COROLLA 2.0V AT"&gt;COROLLA 2.0V AT&lt;/option&gt;
            &lt;option value="COROLLA 1.6V AT (white pearl)"&gt;COROLLA 1.6V AT (white pearl)&lt;/option&gt;
            &lt;option value="COROLLA 1.6V AT"&gt;COROLLA 1.6V AT&lt;/option&gt;
            &lt;option value="COROLLA 1.6G AT"&gt;COROLLA 1.6G AT&lt;/option&gt;
            &lt;option value="COROLLA 1.6G MT"&gt;COROLLA 1.6G MT&lt;/option&gt;
            &lt;option value="COROLLA 1.6E MT"&gt;COROLLA 1.6E MT&lt;/option&gt;
            &lt;option value="FORTUNER 4X4V DSL AT"&gt;FORTUNER 4X4V DSL AT&lt;/option&gt;
            &lt;option value="FORTUNER 4X4V DSL AT (white pearl)"&gt;FORTUNER 4X4V DSL AT (white pearl)&lt;/option&gt;
            &lt;option value="FORTUNER 4X2G DSL AT"&gt;FORTUNER 4X2G DSL AT&lt;/option&gt;
            &lt;option value="FORTUNER 4X2G DSL AT (white pearl)"&gt;FORTUNER 4X2G DSL AT (white pearl)&lt;/option&gt;
            &lt;option value="FORTUNER 4X2G DSL MT"&gt;FORTUNER 4X2G DSL MT&lt;/option&gt;
            &lt;option value="FORTUNER 4X2G DSL MT (white pearl)"&gt;FORTUNER 4X2G DSL MT (white pearl)&lt;/option&gt;
            &lt;option value="FORTUNER 4X2G GAS AT"&gt;FORTUNER 4X2G GAS AT&lt;/option&gt;
            &lt;option value="FORTUNER 4X2G GAS AT (white pearl)"&gt;FORTUNER 4X2G GAS AT (white pearl)&lt;/option&gt;
            &lt;option value="FORTUNER 4X4V DSL AT"&gt;FORTUNER 4X4V DSL AT&lt;/option&gt;
            &lt;option value="FORTUNER 4X2G DSL AT"&gt;FORTUNER 4X2G DSL AT&lt;/option&gt;
            &lt;option value="FORTUNER 4X2G DSL MT"&gt;FORTUNER 4X2G DSL MT&lt;/option&gt;
            &lt;option value="FORTUNER 4X2G GAS AT"&gt;FORTUNER 4X2G GAS AT&lt;/option&gt;
            &lt;option value="HIACE COMMUTER"&gt;HIACE COMMUTER&lt;/option&gt;
            &lt;option value="HIACE COMMUTER (WHITE)"&gt;HIACE COMMUTER (WHITE)&lt;/option&gt;
            &lt;option value="HIACE GL GRANDIA 1T"&gt;HIACE GL GRANDIA 1T&lt;/option&gt;
            &lt;option value="HIACE GL GRANDIA 2T"&gt;HIACE GL GRANDIA 2T&lt;/option&gt;
            &lt;option value="HIACE S GRANDIA LEATHER MONOTONE"&gt;HIACE S GRANDIA LEATHER MONOTONE&lt;/option&gt;
            &lt;option value="HIACE S GRANDIA LEATHER 2-TONE"&gt;HIACE S GRANDIA LEATHER 2-TONE&lt;/option&gt;
            &lt;option value="HIACE S GRANDIA FABRIC MONOTONE"&gt;HIACE S GRANDIA FABRIC MONOTONE&lt;/option&gt;
            &lt;option value="HIACE S GRANDIA FABRIC 2-TONE"&gt;HIACE S GRANDIA FABRIC 2-TONE&lt;/option&gt;
            &lt;option value="HIACE COMMUTER"&gt;HIACE COMMUTER&lt;/option&gt;
            &lt;option value="HIACE COMMUTER (WHITE)"&gt;HIACE COMMUTER (WHITE)&lt;/option&gt;
            &lt;option value="HIACE GL GRANDIA 1T"&gt;HIACE GL GRANDIA 1T&lt;/option&gt;
            &lt;option value="HIACE GL GRANDIA 2T"&gt;HIACE GL GRANDIA 2T&lt;/option&gt;
            &lt;option value="HIACE S GRANDIA LEATHER MONOTONE"&gt;HIACE S GRANDIA LEATHER MONOTONE&lt;/option&gt;
            &lt;option value="HIACE S GRANDIA LEATHER 2-TONE"&gt;HIACE S GRANDIA LEATHER 2-TONE&lt;/option&gt;
            &lt;option value="HIACE S GRANDIA FABRIC MONOTONE"&gt;HIACE S GRANDIA FABRIC MONOTONE&lt;/option&gt;
            &lt;option value="HIACE S GRANDIA FABRIC 2-TONE"&gt;HIACE S GRANDIA FABRIC 2-TONE&lt;/option&gt;
            &lt;option value="HILUX 3.0L G 4X4 AT"&gt;HILUX 3.0L G 4X4 AT&lt;/option&gt;
            &lt;option value="HILUX 3.0L G 4X4 MT"&gt;HILUX 3.0L G 4X4 MT&lt;/option&gt;
            &lt;option value="HILUX 2.5L G 4X2 MT"&gt;HILUX 2.5L G 4X2 MT&lt;/option&gt;
            &lt;option value="HILUX 2.5L E 4X2 MT"&gt;HILUX 2.5L E 4X2 MT&lt;/option&gt;
            &lt;option value="HILUX 2.5L J 4X2 MT"&gt;HILUX 2.5L J 4X2 MT&lt;/option&gt;
            &lt;option value="HILUX FX W/AC"&gt;HILUX FX W/AC&lt;/option&gt;
            &lt;option value="HILUX FX W/O AC"&gt;HILUX FX W/O AC&lt;/option&gt;
            &lt;option value="HILUX CAB AND CHASSIS"&gt;HILUX CAB AND CHASSIS&lt;/option&gt;
            &lt;option value="HILUX 4x4G AT"&gt;HILUX 4x4G AT&lt;/option&gt;
            &lt;option value="HILUX 4x4G MT"&gt;HILUX 4x4G MT&lt;/option&gt;
            &lt;option value="HILUX 4x2G MT"&gt;HILUX 4x2G MT&lt;/option&gt;
            &lt;option value="HILUX 4x2E MT"&gt;HILUX 4x2E MT&lt;/option&gt;
            &lt;option value="HILUX 4x2J MT"&gt;HILUX 4x2J MT&lt;/option&gt;
            &lt;option value="HILUX FX w/rear AC"&gt;HILUX FX w/rear AC&lt;/option&gt;
            &lt;option value="HILUX FX w/o rear AC"&gt;HILUX FX w/o rear AC&lt;/option&gt;
            &lt;option value="HILUX Cab &amp;amp; Chassis"&gt;HILUX Cab &amp;amp; Chassis&lt;/option&gt;
            &lt;option value="INNOVA 2.5G DSL MT"&gt;INNOVA 2.5G DSL MT&lt;/option&gt;
            &lt;option value="INNOVA 2.5G DSL AT"&gt;INNOVA 2.5G DSL AT&lt;/option&gt;
            &lt;option value="INNOVA 2.5V DSL AT"&gt;INNOVA 2.5V DSL AT&lt;/option&gt;
            &lt;option value="INNOVA 2.5J DSL MT"&gt;INNOVA 2.5J DSL MT&lt;/option&gt;
            &lt;option value="INNOVA 2.5E DSL MT"&gt;INNOVA 2.5E DSL MT&lt;/option&gt;
            &lt;option value="INNOVA 2.5E DSL AT"&gt;INNOVA 2.5E DSL AT&lt;/option&gt;
            &lt;option value="INNOVA 2.5G DSL MT (White Pearl)"&gt;INNOVA 2.5G DSL MT (White Pearl)&lt;/option&gt;
            &lt;option value="INNOVA 2.5G DSL AT (White Pearl)"&gt;INNOVA 2.5G DSL AT (White Pearl)&lt;/option&gt;
            &lt;option value="INNOVA 2.5V DSL AT (White Pearl)"&gt;INNOVA 2.5V DSL AT (White Pearl)&lt;/option&gt;
            &lt;option value="INNOVA 2.0G GAS MT"&gt;INNOVA 2.0G GAS MT&lt;/option&gt;
            &lt;option value="INNOVA 2.0G GAS AT"&gt;INNOVA 2.0G GAS AT&lt;/option&gt;
            &lt;option value="INNOVA 2.0V GAS AT"&gt;INNOVA 2.0V GAS AT&lt;/option&gt;
            &lt;option value="INNOVA 2.0J GAS MT"&gt;INNOVA 2.0J GAS MT&lt;/option&gt;
            &lt;option value="INNOVA 2.0E GAS MT"&gt;INNOVA 2.0E GAS MT&lt;/option&gt;
            &lt;option value="INNOVA 2.0E GAS AT"&gt;INNOVA 2.0E GAS AT&lt;/option&gt;
            &lt;option value="INNOVA 2.0G GAS MT (White Pearl)"&gt;INNOVA 2.0G GAS MT (White Pearl)&lt;/option&gt;
            &lt;option value="NNOVA 2.0G GAS AT (White Pearl)"&gt;NNOVA 2.0G GAS AT (White Pearl)&lt;/option&gt;
            &lt;option value="INNOVA 2.0V GAS AT (White Pearl)"&gt;INNOVA 2.0V GAS AT (White Pearl)&lt;/option&gt;
            &lt;option value="LC PRADO AT GAS"&gt;LC PRADO AT GAS&lt;/option&gt;
            &lt;option value="LC PRADO AT GAS (white pearl)"&gt;LC PRADO AT GAS (white pearl)&lt;/option&gt;
            &lt;option value="LC PRADO AT"&gt;LC PRADO AT&lt;/option&gt;
            &lt;option value="LC PRADO AT (white pearl)"&gt;LC PRADO AT (white pearl)&lt;/option&gt;
            &lt;option value="LC PRADO MT"&gt;LC PRADO MT&lt;/option&gt;
            &lt;option value="LC PRADO MT (white pearl)"&gt;LC PRADO MT (white pearl)&lt;/option&gt;
            &lt;option value="LAND CRUISER 200"&gt;LAND CRUISER 200&lt;/option&gt;
            &lt;option value="LAND CRUISER 200 (White Pearl)"&gt;LAND CRUISER 200 (White Pearl)&lt;/option&gt;
            &lt;option value="LAND CRUISER 200 Full Option"&gt;LAND CRUISER 200 Full Option&lt;/option&gt;
            &lt;option value="LAND CRUISER 200 Full Option (White Pearl)"&gt;LAND CRUISER 200 Full Option (White Pearl)&lt;/option&gt;
            &lt;option value="PREVIA 2.4L FULL A/T (MC)"&gt;PREVIA 2.4L FULL A/T (MC)&lt;/option&gt;
            &lt;option value="PREVIA 2.4L FULL A/T (MC white pearl)"&gt;PREVIA 2.4L FULL A/T (MC white pearl)&lt;/option&gt;
            &lt;option value="PREVIA 2.4L STD A/T (MC)"&gt;PREVIA 2.4L STD A/T (MC)&lt;/option&gt;
            &lt;option value="PREVIA 2.4L STD A/T (MC white pearl)"&gt;PREVIA 2.4L STD A/T (MC white pearl)&lt;/option&gt;
            &lt;option value="RAV4 4X4 A/T (MC)"&gt;RAV4 4X4 A/T (MC)&lt;/option&gt;
            &lt;option value="RAV4 4X4 A/T (White Pearl) (MC)"&gt;RAV4 4X4 A/T (White Pearl) (MC)&lt;/option&gt;
            &lt;option value="RAV4 4X2 A/T (MC)"&gt;RAV4 4X2 A/T (MC)&lt;/option&gt;
            &lt;option value="RAV4 4X2 A/T (White Pearl) (MC)"&gt;RAV4 4X2 A/T (White Pearl) (MC)&lt;/option&gt;
            &lt;option value="VIOS 1.3E AT"&gt;VIOS 1.3E AT&lt;/option&gt;
            &lt;option value="VIOS 1.3E MT"&gt;VIOS 1.3E MT&lt;/option&gt;
            &lt;option value="VIOS 1.3J MT (IMP)"&gt;VIOS 1.3J MT (IMP)&lt;/option&gt;
            &lt;option value="VIOS 1.3J MT (OLD)"&gt;VIOS 1.3J MT (OLD)&lt;/option&gt;
            &lt;option value="VIOS 1.3 BASE MT"&gt;VIOS 1.3 BASE MT&lt;/option&gt;
            &lt;option value="VIOS 1.5 TRD A/T (white pearl)"&gt;VIOS 1.5 TRD A/T (white pearl)&lt;/option&gt;
            &lt;option value="VIOS 1.5 TRD A/T"&gt;VIOS 1.5 TRD A/T&lt;/option&gt;
            &lt;option value="VIOS 1.3G AT (OLD)"&gt;VIOS 1.3G AT (OLD)&lt;/option&gt;
            &lt;option value="VIOS 1.5SE A/T WHITE"&gt;VIOS 1.5SE A/T WHITE&lt;/option&gt;
            &lt;option value="VIOS 1.5SE A/T"&gt;VIOS 1.5SE A/T&lt;/option&gt;
            &lt;option value="VIOS 1.5G AT"&gt;VIOS 1.5G AT&lt;/option&gt;
            &lt;option value="VIOS 1.5G MT"&gt;VIOS 1.5G MT&lt;/option&gt;
            &lt;option value="MC VIOS 1.3E AT"&gt;MC VIOS 1.3E AT&lt;/option&gt;
            &lt;option value="MC VIOS 1.3E MT"&gt;MC VIOS 1.3E MT&lt;/option&gt;
            &lt;option value="MC VIOS 1.3J MT"&gt;MC VIOS 1.3J MT&lt;/option&gt;
            &lt;option value="MC VIOS 1.5G MT"&gt;MC VIOS 1.5G MT&lt;/option&gt;
            &lt;option value="MC VIOS 1.5G AT"&gt;MC VIOS 1.5G AT&lt;/option&gt;
            &lt;option value="MC VIOS 1.3G AT"&gt;MC VIOS 1.3G AT&lt;/option&gt;
            &lt;option value="MC VIOS 1.3 BASE MT"&gt;MC VIOS 1.3 BASE MT&lt;/option&gt;
            &lt;option value="MC VIOS 1.5SE AT"&gt;MC VIOS 1.5SE AT&lt;/option&gt;
            &lt;option value="MC VIOS 1.5SE AT (White Pearl)"&gt;MC VIOS 1.5SE AT (White Pearl)&lt;/option&gt;
            &lt;option value="YARIS 1.5 G A/T"&gt;YARIS 1.5 G A/T&lt;/option&gt;
            &lt;option value="YARIS 1.5 G M/T"&gt;YARIS 1.5 G M/T&lt;/option&gt;
            &lt;option value="TOYOTA PRIUS 1.8L Hybrid "&gt;TOYOTA PRIUS 1.8L Hybrid &lt;/option&gt;
            &lt;option value="TOYOTA PRIUS 1.8L Hybrid (White Pearl)"&gt;TOYOTA PRIUS 1.8L Hybrid (White Pearl)&lt;/option&gt;
            &lt;option value="ALPHARD 2.4L White Pearl"&gt;ALPHARD 2.4L White Pearl&lt;/option&gt;
            &lt;option value="ALPHARD 2.4L"&gt;ALPHARD 2.4L&lt;/option&gt;
            &lt;option value="ALPHARD 3.5L White Pearl"&gt;ALPHARD 3.5L White Pearl&lt;/option&gt;
            &lt;option value="ALPHARD 3.5L"&gt;ALPHARD 3.5L&lt;/option&gt;
            &lt;option value="COASTER 30-SEAT Dsl M/T"&gt;COASTER 30-SEAT Dsl M/T&lt;/option&gt;
          &lt;/select&gt;
        &lt;/p&gt;
        &lt;p&gt;
          &lt;input type="text" name="color" id="color" style="width:250px"/&gt;
        &lt;/p&gt;


      &lt;p&gt;
        &lt;input type="text" name="consticker" id="consticker" style="width:250px"/&gt;
      &lt;/p&gt;
      &lt;p&gt;
        &lt;select name="mp" style="width:254px"&gt;
          &lt;option value="AMATORIO, JESSAMYN "&gt;AMATORIO, JESSAMYN &lt;/option&gt;
          &lt;option value="ANDAYA, JEDDELIA PEREZ "&gt;ANDAYA, JEDDELIA PEREZ &lt;/option&gt;
          &lt;option value="BONDAD, KARYL ANN BARIAS"&gt;BONDAD, KARYL ANN BARIAS&lt;/option&gt;
          &lt;option value="BRIÑAS, NINA RICCI ROSE ESTIVA"&gt;BRIÑAS, NINA RICCI ROSE ESTIVA&lt;/option&gt;
          &lt;option value="BUSOG, MELANIE"&gt;BUSOG, MELANIE&lt;/option&gt;
          &lt;option value="CORNISTA, JOHN KARL CRISOSTOMO"&gt;CORNISTA, JOHN KARL CRISOSTOMO&lt;/option&gt;
          &lt;option value="EDAD, OLGA DESAMERO"&gt;EDAD, OLGA DESAMERO &lt;/option&gt;
          &lt;option value="ENDOZO, LORIE JANE SANCHEZ "&gt;ENDOZO, LORIE JANE SANCHEZ &lt;/option&gt;
          &lt;option value="ESTIVA, ROYDAN BAYLON"&gt;ESTIVA, ROYDAN BAYLON &lt;/option&gt;
          &lt;option value="GAMARO, HONEYLET"&gt;GAMARO, HONEYLET&lt;/option&gt;
          &lt;option value="GONZALEZ, MADONA"&gt;GONZALEZ, MADONA&lt;/option&gt;
          &lt;option value="GUTIERREZ, DARA ANGELA"&gt;GUTIERREZ, DARA ANGELA &lt;/option&gt;
          &lt;option value="HERRERA, JAYSON"&gt;HERRERA, JAYSON &lt;/option&gt;
          &lt;option value="ILAGAN, FELIX DE LEON"&gt;ILAGAN, FELIX DE LEON &lt;/option&gt;
          &lt;option value="KATIGBAK, ARTHUR MOISES"&gt;KATIGBAK, ARTHUR MOISES&lt;/option&gt;
          &lt;option value="MANALILI, JASON  "&gt;MANALILI, JASON &lt;/option&gt;
          &lt;option value="MARASIGAN, MICHAEL"&gt;MARASIGAN, MICHAEL &lt;/option&gt;
          &lt;option value="PAGCALIWAGAN, HOLLY ANN"&gt;PAGCALIWAGAN, HOLLY ANN &lt;/option&gt;
          &lt;option value="PANGANIBAN, TRISTAN"&gt;PANGANIBAN, TRISTAN &lt;/option&gt;
          &lt;option value="RAMIREZ, GERARD WEDINGCO"&gt;RAMIREZ, GERARD WEDINGCO &lt;/option&gt;
          &lt;option value="RAMOS, GIAN FRANCIS BRION"&gt;RAMOS, GIAN FRANCIS BRION &lt;/option&gt;
          &lt;option value="RAZON, NOEL"&gt;RAZON, NOEL &lt;/option&gt;
          &lt;option value="SALAZAR, ROBIN CARPIO"&gt;SALAZAR, ROBIN CARPIO &lt;/option&gt;
          &lt;option value="SOMBILLA, CELESTE MARLYNL"&gt;SOMBILLA, CELESTE MARLYN &lt;/option&gt;
          &lt;option value="TABABA, ROCRIS SANTHER DALE"&gt;TABABA, ROCRIS SANTHER DALE &lt;/option&gt;
          &lt;option value="VALENCIA, CAROL GARCIA"&gt;VALENCIA, CAROL GARCIA &lt;/option&gt;
        &lt;/select&gt;
      &lt;/p&gt;
        &lt;p&gt;
          &lt;select name="grm" style="width:254px"&gt;
            &lt;option value="JOAN T. DE LUNA"&gt;JOAN T. DE LUNA&lt;/option&gt;
            &lt;option value="REAGER G. CARLOS"&gt;REAGER G. CARLOS&lt;/option&gt;
            &lt;option value="KARYL ANN B. BONDAD"&gt;KARYL ANN B. BONDAN&lt;/option&gt;
            &lt;option value="ALEX E. NEBRES"&gt;ALEX E. NEBRES&lt;/option&gt;
          &lt;/select&gt;
        &lt;/p&gt;
        &lt;p&gt;&lt;select name="typeoftransact" style="width:254px"&gt;
&lt;option value="CASH"&gt;CASH&lt;/option&gt;
&lt;option value="BANK FINANCING"&gt;BANK FINANCING&lt;/option&gt;
&lt;option value="BANK P.O."&gt;BANK P.O.&lt;/option&gt;
&lt;option value="CORPORATE P.O."&gt;CORPORATE P.O.&lt;/option&gt;
&lt;option value="GOVERNMENT P.O."&gt;GOVERNMENT P.O.&lt;/option&gt;
&lt;/select&gt;&lt;/p&gt;
      &lt;p&gt;
        &lt;input name="dp" type="dp" style="width:250px" /&gt;
      &lt;/p&gt;
      &lt;p&gt;
        &lt;input name="amount" type="amount" style="width:250px" /&gt;
      &lt;/p&gt;
      &lt;p&gt;
        &lt;input name="dirate" type="dirate" style="width:250px" /&gt;
      &lt;/p&gt;
      &lt;p&gt;&amp;nbsp;&lt;/p&gt;
    &lt;p&gt;&amp;nbsp;&lt;/p&gt;
      &lt;p align="right"&gt;AMNT PAID: &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;NEXT&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
    &lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;

    &lt;div id="secondary"&gt;
      &lt;p&gt;VSI No.:&lt;/p&gt;
        &lt;p&gt;DATE:&lt;/p&gt;
        &lt;p&gt;&amp;nbsp; &lt;/p&gt;
      &lt;p&gt;TYPE OF SUBSIDY 1:&lt;/p&gt;
        &lt;p&gt;TYPE OF SUBSIDY 2:&lt;/p&gt;
        &lt;p&gt;TYPE OF SUBSIDY 3:&lt;/p&gt;
        &lt;p&gt;TYPE OF SUBSIDY 4:&lt;/p&gt;
        &lt;p&gt;TYPE OF SUBSIDY 5:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;CHATTEL MORTGAGE:&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;
          &lt;input name="chapaid" type="text" style="width:120px" /&gt;
        &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
      &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;
    &lt;div id="third"&gt;
      &lt;p&gt;
        &lt;input type="text" name="vsi" id="vsi" style="width:180px"/&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;input type="text" name="date" id="date" style="width:180px"/&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
  &lt;select name="type1" style="width:180px"&gt;
    &lt;option value="AVANZA 1.3J M/T"&gt;subd nov. promo&lt;/option&gt;
    &lt;option value="AVANZA 1.3E A/T"&gt;subd dec. promo&lt;/option&gt;
    &lt;option value="AVANZA 1.3E M/T"&gt;subd jan. promo&lt;/option&gt;
    &lt;option value="AVANZA 1.5G M/T"&gt;subd feb. promo&lt;/option&gt;
    &lt;option value="AVANZA 1.5G A/T"&gt;subd march promo&lt;/option&gt;

  &lt;/select&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;select name="type2" style="width:180px"&gt;
   &lt;option value="AVANZA 1.3J M/T"&gt;subd nov. promo&lt;/option&gt;
    &lt;option value="AVANZA 1.3E A/T"&gt;subd dec. promo&lt;/option&gt;
    &lt;option value="AVANZA 1.3E M/T"&gt;subd jan. promo&lt;/option&gt;
    &lt;option value="AVANZA 1.5G M/T"&gt;subd feb. promo&lt;/option&gt;
    &lt;option value="AVANZA 1.5G A/T"&gt;subd march promo&lt;/option&gt;
  &lt;/select&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;select name="type3" style="width:180px"&gt;
    &lt;option value="AVANZA 1.3J M/T"&gt;subd nov. promo&lt;/option&gt;
    &lt;option value="AVANZA 1.3E A/T"&gt;subd dec. promo&lt;/option&gt;
    &lt;option value="AVANZA 1.3E M/T"&gt;subd jan. promo&lt;/option&gt;
    &lt;option value="AVANZA 1.5G M/T"&gt;subd feb. promo&lt;/option&gt;
    &lt;option value="AVANZA 1.5G A/T"&gt;subd march promo&lt;/option&gt;
  &lt;/select&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;select name="type4" style="width:180px"&gt;
    &lt;option value="AVANZA 1.3J M/T"&gt;subd nov. promo&lt;/option&gt;
    &lt;option value="AVANZA 1.3E A/T"&gt;subd dec. promo&lt;/option&gt;
    &lt;option value="AVANZA 1.3E M/T"&gt;subd jan. promo&lt;/option&gt;
    &lt;option value="AVANZA 1.5G M/T"&gt;subd feb. promo&lt;/option&gt;
    &lt;option value="AVANZA 1.5G A/T"&gt;subd march promo&lt;/option&gt;
  &lt;/select&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;select name="type5" style="width:180px"&gt;
    &lt;option value="AVANZA 1.3J M/T"&gt;subd nov. promo&lt;/option&gt;
    &lt;option value="AVANZA 1.3E A/T"&gt;subd dec. promo&lt;/option&gt;
    &lt;option value="AVANZA 1.3E M/T"&gt;subd jan. promo&lt;/option&gt;
    &lt;option value="AVANZA 1.5G M/T"&gt;subd feb. promo&lt;/option&gt;
    &lt;option value="AVANZA 1.5G A/T"&gt;subd march promo&lt;/option&gt;
  &lt;/select&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;FREE: 
          &lt;input name="chafree" type="text" style="width:100px" /&gt;
        &lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
      &lt;p&gt;&amp;nbsp;&lt;/p&gt;
      &lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;
&lt;div id="fourth"&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
    &lt;p&gt;&amp;nbsp;&lt;/p&gt;
    &lt;p&gt;Php: 
      &lt;input name="type1amount" type="text" style="width:120px" /&gt;
        &lt;/p&gt;
        &lt;p&gt;Php:
          &lt;input name="type2amount" type="text" style="width:120px" /&gt;
        &lt;/p&gt;
        &lt;p&gt;Php:
          &lt;input name="type3amount" type="text" style="width:120px" /&gt;
        &lt;/p&gt;
        &lt;p&gt;Php:
          &lt;input name="type4amount" type="text" style="width:120px" /&gt;
        &lt;/p&gt;
        &lt;p&gt;Php:
          &lt;input name="type5amount" type="text" style="width:120px" /&gt;
        &lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
    &lt;p&gt;COST: 
      &lt;input name="chacost" type="text" style="width:120px" /&gt;
    &lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;

    &lt;p align="right"&gt;&lt;input class="small button blue" type="button" id="Save" name="Save" style="width: 80px" value="Save" /&gt;&lt;/p&gt;


&lt;/div&gt;
&lt;/div&gt;
&lt;/form&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>and my action form insert.php</p>

<pre><code>&lt;?php
include("connection.php");

$vsi = $_POST["vsi"];
$date = $_POST["date"];
$custname = $_POST["csname"];
$unit = $_POST["units"];
$color = $_POST["color"];
$consticker = $_POST["consticker"];

$mp = $_POST["mp"];
$grm = $_POST["grm"];
$typetrans = $_POST["typeoftransact"];
$dp = $_POST["dp"];
$amount = $_POST["amount"];
$dirate = $_POST["dirate"];
$typesub1 = $_POST["type1"];
$typesub2 = $_POST["type2"];
$typesub3 = $_POST["type3"];
$typesub4 = $_POST["type4"];
$typesub5 = $_POST["type5"];
$chacost = $_POST["chacost"];
$chapaid = $_POST["chapaid"];
$chafree = $_POST["chafree"];
$type1amount = $_POST["type1amount"];
$type2amount = $_POST["type2amount"];
$type3amount = $_POST["type3amount"];
$type4amount = $_POST["type4amount"];
$type5amount = $_POST["type5amount"];


echo('&amp;nbsp;');
echo('&amp;nbsp;');
echo('&amp;nbsp;');
echo('&amp;nbsp;');
echo('&amp;nbsp;');

if($_POST["Save"]=="Save")
{
$query="INSERT INTO accounts (vsi,date,cname,unit,color,consticker,typetrans,downpayment,amountfinanced,dirate,mp,grm,typesub1,typesub2,typesub3,typesub4,typesub5,chapaid,chacost,chafree,type1amount,type2amount,type3amount,type4amount,type5amount)
VALUES
('".$vsi."','".$date."','".$custname."','".$unit."','".$color."','".$consticker."','".$typetrans."','".$dp."','".$amount."','".$dirate."','".$mp."','".$grm."','".$typesub1."','".$typesub2."','".$typesub3."','".$typesub4."','".$typesub5."','".$chapaid."','".$chacost."','".$chafree."','".$type1amount."','".$type2amount."','".$type3amount."','".$type4amount."','".$type5amount."');";

(mysql_query($query))

or die ("error!".mysql_error() );



}

header('Location: index.php');

?&gt;
</code></pre>
