webgui/www/extras/yui/examples/container/assets/get.php
Chris Nehren 8fdd413d12 * resizable text areas now use the YUI 2.5.0 code
* add the new YUI release
* document the change in both the changelog and gotcha.txt
2008-02-26 21:27:14 +00:00

33 lines
No EOL
471 B
PHP

<?php
print "data = { ";
$index = 0;
foreach($_GET as $key => $value) {
print htmlspecialchars("$key:", ENT_QUOTES);
if (gettype($value) == "array") {
print "[";
for ($i = 0;$i < count($_GET[$key]);$i++) {
$v = $_GET[$key][$i];
print "\"$v\"";
if ($i < count($_GET[$key])-1) {
print ",";
}
}
print "]";
} else {
print "\"$value\"";
}
$index++;
if ( ($index) < count($_GET) ) {
print ", ";
}
}
print " };";
?>