Welcome Guest, Not a member yet? Register   Sign In
Set a $_GET value
#1

(This post was last modified: 05-15-2024, 07:28 AM by CCAldo.)

PHP Code:
localhost?foo=bar
$_GET
['foo'] = 'baar'
echo 
$_GET['foo']; // 'baar'

localhost?foo=bar
$_GET
['foo'] = 'baar'
echo 
$this->request->getGet('foo'); // 'bar' 


I encountered a loop because I couldn't update the $_GET parameters during the same request.

PHP Code:
# Solution? 
$this->request->setGet('foo''bar');  
$this
->request->setPost('foo''bar');  

Is this possible?
Reply


Messages In This Thread
Set a $_GET value - by CCAldo - 05-15-2024, 07:16 AM
RE: Set a $_GET value - by ozornick - 05-15-2024, 08:58 AM
RE: Set a $_GET value - by kenjis - 05-15-2024, 07:18 PM
RE: Set a $_GET value - by CCAldo - 05-15-2024, 11:28 PM
RE: Set a $_GET value - by ozornick - 05-16-2024, 12:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB