PHP Classes

File: sample/sample.request.php

Recommend this page to a friend!
  Classes of Tom Schaefer   QBaseClass   sample/sample.request.php   Download  
File: sample/sample.request.php
Role: Example script
Content type: text/plain
Description: Sample for showing how it works
Class: QBaseClass
Add variable management functions to sub-classes
Author: By
Last change: chg
Date: 16 years ago
Size: 1,000 bytes
 

Contents

Class file image Download
<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>