HTML Form sending values with jQuery Ajax to PHP
<p>i have this HTML form that sends input values using jquery ajax to php. The process went well, but only if i see it when i right-click>inspect element>network>header .unfortunately the real page stays still.</p>

<p>is there anyway i did it wrong? please help. Thanks all i really appreciate the help.</p>

<ul>
<li>i didnt include the full codes, cause i think i've messed up on the jquery ajax, because apparently the process went well and showed correct result</li>
</ul>

<p><strong>HTML FORM</strong></p>

<pre><code>&lt;div class="product-filter-type"&gt;
                    &lt;input type="radio" class="checkFilter"  id="filterAllTV" name="typeTV" value="AllTV" checked&gt;&lt;label class="filterType" for="filterAllTV"&gt;All TV&lt;/label&gt;&lt;br/&gt;
                    &lt;input type="radio" class="checkFilter"  id="filterFHDTV" name="typeTV" value="FHD"&gt;&lt;label class="filterType" for="filterFHDTV"&gt;FHD/HD&lt;/label&gt;&lt;br/&gt;
                    &lt;input type="radio" class="checkFilter"  id="filter4K" name="typeTV" value="FOURK"&gt;&lt;label class="filterType" for="filter4K"&gt;4K&lt;/label&gt;
                &lt;/div&gt;
</code></pre>

<p><strong>JAVASCRIPT/JQUERY/AJAX</strong></p>

<pre><code>var type;


    $('input[name="typeTV"]').click(function(){
        if ($(this).is(':checked'))
        {
            type = $('input[name="typeTV"]:checked').val();
            sendType(type);
        }
    });



function sendType(type){

    $.ajax({ 
        type: 'POST', 
        url: "{{ base_url() }}product",
        data: { 
            'type' : type
        },
        success: {}
    }); 
</code></pre>

<p><strong>PHP (FUELPHP)</strong></p>

<pre><code>public function action_product() {

    $this-&gt;set_meta_info($this-&gt;_meta_slug);

    $input_data = \Input::param();

    if(count($input_data) &gt; 0){

        $this-&gt;_filter($input_data);

    }else{

        $this-&gt;_data_template['product'] = \Product\Productutil::get_product_data();
        $this-&gt;_data_template['AllTV'] = 'checked';

    }

    return \Response::forge(\View::forge('pages::frontend/product_list.twig', $this-&gt;_data_template, FALSE));
}

private function _filter($input_data) {

    $this-&gt;set_meta_info($this-&gt;_meta_slug);

    if (count($input_data) &gt; 0) {

        $type       = isset($input_data['type']) ? $input_data['type'] : null;


        if ($type){

            $this-&gt;_data_template['product'] = \Pages\Filterutil::get_type_product($type);
            $this-&gt;_data_template[$type] = 'checked';

        }elseif { ... }

        return $this-&gt;_data_template;
    }

}
</code></pre>