<html>
<head>
<title>Sample Request</title>
</head>
<body>
<form action="sample.request.php" method="post" enctype="multipart/form-data">
<input type="text" name="name" value="test"/>
<input type="radio" name="radio" value="1"/>
<input type="radio" name="radio" value="2" checked="checked"/>
<input type="checkbox" name="check" value="1"/>
<input type="file" name="file" /><input type="hidden" name="MAX_FILE_SIZE" value="30000">
<input type="submit" value="OK"/>
</form>
<?php
include_once '../config.inc.php';
$request = new QWebParameter();
if($_POST) {
/**
print sample data from post
**/
print "<pre>";
print_r($request->getParameter()->getUpload()->getSize());
print_r($request->getParameter()->getUpload()->getName());
print_r($request->getParameter()->getUpload()->getSize());
print_r($request->getParameter()->getUpload());
print_r($request->getParameter());
print "</pre>";
}
?>
</body>
</html>
|