Fixing #1497 and expanding get_input to handle floats and booleans autom...

...atically.
Why not using `(string)` here? We do use `(int)` even if `is_numeric` is true... which BTW should probably be `is_int`... PHP is too confusing..