revise input value and PHP code