Hi,
I don't think one can declare the data type at client side.If you want to make sure that value should be INT then you can use javascript (isNaN()).
Each value posted will be treated as String so,the result you are getting.
If you want convert that value to INT
you can do so using (int) $val.