2.06: Replaced $_POST with $input->post (same with $_GET)

Also fixed a bug mentioned by Soma.