There is a php file that has the pages selected using a simple if function like this But if you go to the following URL it does not the the contents of that if statement and just skips it. I realy have to know why this is happening.
The material after the question mark in the URL is called the query strong. You access it as follows: $mode = strtolower( $_SERVER["QUERY_STRING"] ); Code (markup): In you case, it is going to return "mode=register" So your test becomes: if($mode == "mode=register") Code (markup): unless you split the query to find out what type it is and what it is. Your type becomes "mode" and what your are seeking is the "register" mode.
Register globals is turned off on the server, as it should be. You have to access mode like so in your code: Of course you might want to do some checks about what is allowed in modes.
$mode=$_GET['mode'] ; Code (markup): My oversight. There is always more than one way to skin a cat in PHP and perl.
Hm... How come when I put the $_GET in my file none of my tables are listing the users from my database anymore. It uses normal pagination and works fine without it. Also, why are the link on this page not working with IE it only works with Firefox Last time I checked IE was capable of showing links. wtf?
Putting the line $mode = $_GET['mode']; in your file is not going to affect your ability to list users in the database; nor affect a browsers ability to render the page. When this happens, it suggests that you have a critical error in the file. Error reports should show up in your web broswer file. I also find it helpful to run pages I have just edited from the command line to see if they are generating errors. If the links are not showing, take a look at the source for the rendered page and make sure they are valid. This is just part of the normal write-run-debug cycle of program development. Programming takes patience and a good eye.
omg, lol, there was a mistake in one of the $_GET variables. That's why I was confused clancey, thanks for all your help