Re: How do you do the ? mark after a filename
| From: | J R | Date: | Mon, 13 Nov 2006 05:37:37 +0000 |
| Subject: | Re: How do you do the ? mark after a filename | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-244542@lists.php.net to get a copy of this message | ||
using "<form method=get...", it is automatically generated but you can also
do it manually in your anchor tag like so: <a href="
www.domain.com/index.php?id=35&format=html">click me</a>
in your php you can get its value by use of the $_GET variable.
hth,
john
On 11/13/06, Thomas Bonham <thomasbonham@bonhamlinux.org> wrote:
Thank you for that, it was a big help. Can I also call function that way? Again thank you for your help. Thomas Tom Chubb wrote: On 12/11/06, Thomas Bonham <thomasbonham@bonhamlinux.org> wrote:-- GMail Rocks!!!You can retrieve variables from the URL using the GET method. This is similar to using the POST method with data from forms. A typical url with something like www.domain.com/index.php?id=35&format=html would provide the page with two variables, id & format. It's the equivalent of putting the following in the page. $id = 35; $format = 'html'; This is popular with simple CMS/Templating systems where you use a standard page and the id variable loads the relevant article text. Hope that helps. Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpHi All, I keep seeing the ? mark after many file names index.php?id=234. So what I would like to know is how do you make them. I have heard that they can make a programs life sampler when doing somethings with a database. Thank you, Thomas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php