I’m a new comer in web development, so I would like to clarify one doubt, I have found some websites URL part like /index.php?option=com_content&view=article&id=47&Itemid=62 . What is this mean by in php web pages and how to get updating the index.php web page with different contents while clicking on different menu items. I know how to pas arguments while calling a URL, but my doubt is in option=com_content&view=article. Please clarify my doubt. Please give more information about this.
I’m a new comer in web development, so I would like to clarify one
Share
Those are variables which will appear in the
$_GETarray (and often the$_REQUESTarray —$_REQUESTusually contains everything that$_GETdoes, but there are some exceptions). They are normally (but not always) put there by a form with “get” as the method attribute in HTML or they are put there in some anchor href attribute directly.If you have
option=com_content&view=article, then$_GET['option']will equal “com_content” and$_GET['view']will equal “article”If you’re interested in learning more, I recommend the tizag tutorial, which goes into a little more depth than I have.