When I enter the URL http://www.lock-tech.co.uk/groups.php into the browser then the new generated URL displays rootURL + rootURL/filename.php like so:
http://www.lock-tech.co.uk/index.php?myURL=http://www.lock-tech.co.uk/groups.php
and outputs these errors:
Notice: Undefined variable: getVars in /home/swansea3/public_html/lock-tech.co.uk/scrptz/sessions.php on line 15
Notice: Undefined index: vat in /home/swansea3/public_html/lock-tech.co.uk/scrptz/sessions.php on line 39
Notice: Undefined index: action in /home/swansea3/public_html/lock-tech.co.uk/scrptz/sessions.php on line 62
Notice: Undefined index: UPDATE_x in /home/swansea3/public_html/lock-tech.co.uk/scrptz/sessions.php on line 62
Notice: Undefined index: DELETE_x in /home/swansea3/public_html/lock-tech.co.uk/scrptz/sessions.php on line 62
Notice: Undefined index: page in /home/swansea3/public_html/lock-tech.co.uk/groups.php on line 6
Notice: Undefined index: prodg in /home/swansea3/public_html/lock-tech.co.uk/groups.php on line 11
Notice: Undefined index: prodg in /home/swansea3/public_html/lock-tech.co.uk/groups.php on line 16
The block of code that generates the URL's looks like this:
$URLvars=substr($_SERVER["PHP_SELF"], strrpos($_SERVER["PHP_SELF"],"/")+1);
$vatLink=$URLvars;
$thisPageURL=$_SERVER["PHP_SELF"];
if(strpos($thisPageURL, "secure/locktech/")!==false)$thisPageURL=substr($_SERVER["PHP_SELF"], 16);
$prodLink="http://www.lock-tech.co.uk/".$thisPageURL;
And when I click on the product groups link on the index page the URL does not change at all, just displays the root URL and the following errors:
Notice: Undefined index: vat in /home/swansea3/public_html/lock-tech.co.uk/scrptz/sessions.php on line 39
Notice: Undefined index: action in /home/swansea3/public_html/lock-tech.co.uk/scrptz/sessions.php on line 62
Notice: Undefined index: UPDATE_x in /home/swansea3/public_html/lock-tech.co.uk/scrptz/sessions.php on line 62
Notice: Undefined index: DELETE_x in /home/swansea3/public_html/lock-tech.co.uk/scrptz/sessions.php on line 62
Notice: Undefined index: page in /home/swansea3/public_html/lock-tech.co.uk/groups.php on line 6
Does anyone know what might be the issue?