Update index.php

- filter_input
- why storing in variables $amount $length and then store in session without using these ?
- utf-8 encoding in headers