Login   Register  
PHP Classes
elePHPant
Icontem

File: teste.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Rodrigo Angelo Rafael  >  Post and Get methods  >  teste.php  >  Download  
File: teste.php
Role: Example script
Content type: text/plain
Description: a exemple of my class
Class: Post and Get methods
Retrieve POST and GET request parameters
Author: By
Last change: just chek
Date: 8 years ago
Size: 614 bytes
 

Contents

Class file image Download
<?
    
require_once "class_get_post.php";
    
$rec =  new gp();
    if(
$rec->get){
        echo 
"<pre>";
        
print_r($rec->post);
        echo 
"<br>";
        
print_r($rec->get);
    }else{
?>

<form name="form1" method="post" action="teste.php?envia=1">
<label>
<input type="text" name="textfield">
</label>
<br>
<input type="text" name="textfield2">
<br>
<input type="text" name="textfield3">
<br>
<input type="text" name="textfield4">
<br>
<input type="text" name="textfield5">
<br>
<input type="text" name="textfield6">
<br>
<label>
<input type="submit" name="Submit" value="Submit">
</label>
</form>
<?
}
?>