Ignore from the submitted url the form elements that do not have any values
<p>I want to create a url in the form of domain.com/?product=value1&amp;product2=value2.....</p>

<p>Sometimes the textboxes may not have values in it. How can I edit the code below to ignore those forms elements?</p>

<p><strong>my form</strong></p>

<pre><code>    &lt;form action="customsearch.php"&gt;

    &lt;input type="text" class="textfield" value="" id="product" name="product"&gt;
    &lt;input type="text" class="textfield" value="" id="product2" name="product2"&gt;
.
.
.    
    &lt;input type="submit" value="Send"&gt;

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