RE: [PHP] what's all the about then?

From: Date: Wed, 30 Aug 2006 12:23:43 +0000
Subject: RE: [PHP] what's all the about then?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-241227@lists.php.net to get a copy of this message
Do this. 1. Create a script called hello.php with the following content: <?php echo $_GET['string']; ?> 2. Enter http://yoururl/hello.php?string=Hello 3. The page will say "Hello" The content after the ? will be treated as GET variables in the http request to the server. You can use this to change behavior of a script depending on what the GET variables values are. /Peter -----Original Message----- From: Ross [mailto:ross@aztechost.com] Sent: Wednesday, August 30, 2006 7:10 PM To: php-general@lists.php.net Subject: [PHP] what's all the about then? There is a site which has interesting behaviour. http://myurl.co.uk/index.php?p=latest when I click the links the variable and the end changes changing the page. http://myurl.co.uk/index.php?p=news Can someone tell me (i) how is this achived (ii) what is the technique called (iii) does it have any real benefits apprt from looking a bit nifty Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#241227) next »