I have 2 questions to ask:
(1) I have been doing php for quite some time and I would like to know how a link such as this one works:
http://www.rooftop.com/forums/index.php?do=login&f=31

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.

(2) I do shell scripting on linux and I recently tried scripting using php and it worked fine. I would like to know how I can read in user input using php.

Thanks

Recommended Answers

All 2 Replies

(1) I have been doing php for quite some time and I would like to know how a link such as this one works:
http://www.rooftop.com/forums/index.php?do=login&f=31

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.

Let me try it out.

Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.