RE: updating sub-request parameters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



So let me get this straight.
Your script.php has all the passed variable positions of $_GET?
Once it has passed you want to change the value?

You can change the value of a $_GET very easy.


If(isset($_GET['param1']))
{
$_GET['param1'] == "no Chew";
}

By changing the global value or using filters on the global values of $_GET.



I have created a similar script only to mess with the $_GET variables.

If(isset($_GET['param1']))
{
	$_GET['param1'] = mysql_real_escape_string($_GET['param1']);

	// you can create $_GET variables like so.
	$_GET['moo_cow'] = mysql_real_escape_string($_GET['param1']);
	
	
}

I hope I have answered your question.



Richard L. Buskirk


-----Original Message-----
From: Daniela Floroiu [mailto:dani.floroiu@xxxxxxxxxxxxxx] 
Sent: Monday, November 01, 2010 10:21 AM
To: php-general@xxxxxxxxxxxxx
Subject:  updating sub-request parameters

hi,

I need to make an apache sub-request like:

    virtual('.../script.php?param1=val1&param2=val2...');

where the parameters are different from the parameters of the original
request.
I tried to set param1 and param2 in $_GET, $_REQUEST,
$_SERVER['QUERY_STRING'] but without success: what script.php receives are
nothing less and nothing more than the original parameters with the original
values.

any ideea how one could touch the parameters being passed to a sub-request?

cheers,
--df


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux