The data in that querystring will be available to your php script in the $_GET array as 2 seperate arrays one called deviceId and the other val
_GET Array
(
[deviceId] => Array
(
[0] => 00040002
[1] => 00040003
[2] => 00040002
)
[val] => Array
(
[0] => 36
[1] => 23
[2] => 33
)
)
Here is a simple test script save it as arraytest.php in whatever directory your index.php script is in.
<?php
echo '<pre> _GET Array' . print_r( $_GET, TRUE ) . '</pre>';
// move the arrays into something more managable
$deviceId = $_GET['deviceId'];
$val = $_GET['val'];
// loop through the deviceId array and print it and the associated val data.
for ( $x=0; $x < count($deviceId); $x++ )
{
echo $deviceId[$x] . ' = ' . $val[$x] . '<br>';
}
?>
Then put this into your browser
arraytest.php?deviceId[]=00040002&val[]=36&deviceId[]=00040003&val[]=23&deviceId[]=00040002&val[]=33
And see what is printed.
Documentation
[
uk.php.net]
[
uk.php.net]
[
php.net]