Login   Register  
PHP Classes
elePHPant
Icontem

File: postasget.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Leif K-Brooks  >  Query String Manipulator  >  postasget.php  >  Download  
File: postasget.php
Role: Example script
Content type: text/plain
Description: Example where post variables are resent as get.
Class: Query String Manipulator
Manipulate query strings.
Author: By
Last change:
Date: 2002-10-17 05:53
Size: 293 bytes
 

Contents

Class file image Download
<?php
include("querystringmanip.inc.php");
if(
$_GET['postasgetdone'] != 'yes'){
$postdata = new querystring($_POST);
$postdata->change('postasgetdone','yes');
$postdata->addmultiple($_GET);
$get $postdata->getvars('query');
header("Location: {$_SERVER['SCRIPT_NAME']}?{$get}");
}
?>