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: 11 years ago
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}");
}
?>