Page 1 of 1

How to escape equal sign

Posted: Sun Sep 11, 2011 4:42 pm
by mavera2
I suppose that the code below doesn't work because of equal signs, ampersands.
How can i fix this?
Thank you

Code: Select all

include_once ('../main/calculate.php?try=1&make=20');

Re: How to escape equal sign

Posted: Sun Sep 11, 2011 5:23 pm
by nowaydown1
You are trying to pass parameters as part of your include. Instead, you should just set the necessary parameters in the superglobal, then do your include like so:

Code: Select all

$_GET['try'] = 1;
$_GET['make']=20;
include_once ('../main/calculate.php');