Poor assed headline, but it is descriptive ![Stick out tongue :p :p](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Here's what I have:
So, if goto is defined (in a link), it gets passed over to the constant GOTOO, which I then see if is defined - if it isn't I set it to be the number 2. After all that I set the variable $goto to the value of the constant GOTOO.
Not all that straightforward, but it works in my mind... but not on the computer![Stick out tongue :p :p](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
illustration and webdesign
Here's what I have:
Code:
define("GOTOO", $_GET['goto']);
if (defined('GOTOO')) {
}else{
define("GOTOO", 2);
}
$goto = GOTOO;
So, if goto is defined (in a link), it gets passed over to the constant GOTOO, which I then see if is defined - if it isn't I set it to be the number 2. After all that I set the variable $goto to the value of the constant GOTOO.
Not all that straightforward, but it works in my mind... but not on the computer
illustration and webdesign