8 Years
Discussion Span
Last Post by sureronald

(1) I have been doing php for quite some time and I would like to know how a link such as this one works:

My problem is the part that comes after the question mark. I have been using joomla of late and such links are very common in joomla and of course all over the net.

The part which comes after the question mark is the parameters (or should I say values) which are being passed through the url. You can access that value by doing, $_GET['do'] in index.php. This is just a way of passing the values from one page to another using the url. In index.php, depending upon this value, a block of code would be executed . Another method is POST, which is the answer for your second question. Go through the link and you will see for yourself how you can access user's input.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.