I have heavily relied upon register_globals in my web projects since years back.
So, now when this function is turned off I'm trying the GET method.
But I haven't found anywhere how I use this to pass variables through the URL from clicking a link.
Here is an example of my code:
<? if ($_GET["pageid"]="igbestallning") {
include "includes/igbestallning.inc.php";
}
elseif ($_GET["pageid"]="dialog") {
include "includes/dialog.inc.php";
}
elseif ($_GET["pageid"]="forslum") {
include "includes/forslum.inc.php";
} else {
include "includes/nospam.inc.php";
}
?>
In this case I get the page "includes/igbestallning.inc.php" independent of which link I click.
If I click the link http://www.gestaltinformation.se/500_dialog.php?pageid=dialog I still get the first alternative.
I'm no programmer, so I try to keep things simple as long as I can understand how to make things happen. This problem eludes me, though.
I appreciate any suggestions...
Regards,
Lars