Hi there I have my website done in php: www.mysite.com/index.php I always wondered why some dynamic web pages in php have this link http://www.yourWebsite.com/yourscript.php?id=123 I guess my question is, is the above link a more advanced way of doing dynamic web pages in php? Im willing to learn anyway of improving in php. Many thanks in advance CHEERS
It's using HTTP GET. I suppose you could say it's a more advanced method. http://www.w3schools.com/PHP/php_get.asp
It depends on what exactly is dynamic/what the page is used for. For example, if the dynamic page is simply a home page with a custom message for each user, then the page does not need the latter, however for something like a shop with products, you would need the display.php?p=75 to tell the page what product to display in your catalog. You can always change this with url rewriting to have pretty urls like yourdomain.com/product/75 which will again show the products dynamically, or even change the 75 so its the product name,ie yourdomain/product/product-name-here