Update index.php

- filter_input
- why storing in variables $amount $length and then store in session without using these ?
- utf-8 encoding in headers
Merge pull request #1 from PunKeel/patch-1

Update index.php