I have a form with 6 <select>
options. All <select>
filed will have same values but with different names.
Like this:
<form action="" method="post">
<select name="var1" class="form-control">
<option value="0">0</option>
<option value="10">10</option>
<option value="20">20</option>
<option value="50">50</option>
<option value="100">100</option>
</select>
<select name="var2" class="form-control">
<option value="0">0</option>
<option value="10">10</option>
<option value="20">20</option>
<option value="50">50</option>
<option value="100">100</option>
</select>
<input type="submit" name="submit" value="Submit"/>
</form>
I am submitting these information to the same page, But before submit is it possible to filter those variables which are greater than 0? I want to POST
only those variables which has value greater than 0. How can i do it?