MugunthKumar/MKStoreKit — Issue #40: Using filter_input() returns HTTP 500 on AddDevice.html
Author: thiagoperes
Created: 2011-12-14 03:45:28+00:00
State: open

Hello,

I uploaded the server code and I used the script to setup my database, and whenever I tried to add data using AddDevice.html I got a http 500 code.

When I removed the filter_input functions and accessed _POST directly it worked.

```
$prod = $_POST['productid'];
//$prod = filter_input(INPUT_POST, 'productid', FILTER_SANITIZE_NUMBER_INT);

$udid = $_POST['udid'];
//$udid = filter_input(INPUT_POST, 'udid', FILTER_SANITIZE_STRING);

$email = $_POST['email'];
//$email = filter_input(INPUT_POST, 'email', FILTER_SANITIZE_EMAIL;

$message = $_POST['message'];
//$message = filter_input(INPUT_POST, 'message', FILTER_SANITIZE_ENCODED);
```

Can anyone help me figuring this out?

Thank you!