Login   Register  
PHP Classes
elePHPant
Icontem

File: sample/sample.request.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2008-07-26 05:35
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>