Skip to content


Subversion checkout URL

You can clone with
Download ZIP
tree: 71de37c234
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (30 sloc) 0.797 kB
<title> - Reading multiple parameters from URL</title>
<b>Query string</b>
<?php print(urldecode($_SERVER['QUERY_STRING'])) ?>
<b>Accepted parameters:</b>
// accept JSON parameter (and Un-quote string if needed)
$p = stripslashes($_REQUEST['p']);
// decode JSON object (it shouldn't be decoded as associative array)
$arr = json_decode($p);
// open loop through each array element
foreach ($arr as $p){
// set id, row index and cell index
$id = $p[0];
$row = $p[1];
$cell = $p[2];
// instead of print, you can store accepted parameteres to the database
print "Id=$id Row=$row Cell=$cell<br>";
Jump to Line
Something went wrong with that request. Please try again.