webgui/www/extras/yui/examples/container/assets/post.php
JT Smith 20f8df1291 upgrading to YUI 2.6
data tables are going to need some work yet, but the other stuff seems to be working 100%
2008-10-22 23:53:29 +00:00

25 lines
429 B
PHP

<?php
print "<strong>Submitted Data</strong>";
print "<ul>";
foreach($_POST as $key => $value) {
print "<li>";
print htmlspecialchars("$key: ", ENT_QUOTES);
if (gettype($value) == "array") {
for ($i = 0;$i < count($_POST[$key]);$i++) {
$v = $_POST[$key][$i];
print "$v";
if ($i < count($_POST[$key])-1) {
print ", ";
}
}
} else {
print "$value";
}
print "</li>";
}
print "</ul>";
?>