Q:

Getting value form input type hidden

I am using input type hidden for getting hidden data in URL. Here is my code
<input type="hidden" name="post_type" value="kcc-product">
<input type="hidden" name="post_type" value="kcc-manufacturer">

When I am using it, I am getting URL as &post_type=kcc-product&post_type=kcc-manufacturer
But I need it like: &post_type=kcc-product&kcc-manufacturer
Just I have to remove **post_type=** from URL. I tried with 
<input type="hidden" name="post_type" value="kcc-product">
<input type="hidden" name="" value="kcc-manufacturer">

But, it is not working. How can I remove **post_type=** from URL? Any Ideas?

A:

<input type="hidden" name="post_type[]" value="kcc-product">
<input type="hidden" name="post_type[]" value="kcc-manufacturer">

try this. Both value of post_type will be avilable in $_GET['post_type'] as an array.

