<?php
/**
* This file is hightly useful to handle $_GET parameters, specially in a loop,
* while buildining the pagination type links.
* When you assign a same key again, it will overwrite it and this is the good aspect of the script.
*/
define('LOGIN_NOT_REQUIRED', true); # Access without logging in
require_once("../classes/config.inc.php"); # Defines __autoload()
# gu => Get URL parameters
$gu = new GET($_GET);
$gu->add('k', 'key');
$gu->add('v', 'value');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>GET</title>
</head>
<body>
<p><?=("<a href='?".$gu->url()."'>Link</a>")?></p>
</body>
</html>
|