mrherman Posted February 10, 2010 Share Posted February 10, 2010 I'm trying to understand a great pagination tutorial posted on PHPFREAKS. Using the $_GET method, the links are processed. An example is: '{$_SERVER['PHP_SELF']}?nCurrentPage=$nNextPage' The part I don't quite understand is the "?" (question mark). Where does it come from and what precisely does it mean? Does it always mean the same thing (or serve the same function) in every URL address? For example, the address that is showing on my browser at this moment has a "?" embedded: http://www.phpfreaks.com/forums/index.php?action=post;board=1.0 Thank you! Quote Link to comment Share on other sites More sharing options...
schilly Posted February 10, 2010 Share Posted February 10, 2010 it means everything after it is not part of the filename and also variables that need to be parsed by the php engine into the $_GET array. not totally sure if that is the right wording or not. Quote Link to comment Share on other sites More sharing options...
mrherman Posted February 11, 2010 Author Share Posted February 11, 2010 Thank you for replying. So, the "?" is really just a divider, then? Would that be correct to say? Quote Link to comment Share on other sites More sharing options...
schilly Posted February 11, 2010 Share Posted February 11, 2010 ya pretty much =) Quote Link to comment Share on other sites More sharing options...
mrherman Posted February 11, 2010 Author Share Posted February 11, 2010 Thanks again! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.