PHP Classes

File: postasget.php

Recommend this page to a friend!
  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: 21 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}");
}
?>