RE: [PHP] refer to the same page AGAIN! Please...

From: Date: Tue, 04 Sep 2001 08:33:33 +0000
Subject: RE: [PHP] refer to the same page AGAIN! Please...
Groups: php.general 
Request: Send a blank email to php-general+get-65856@lists.php.net to get a copy of this message
Create a file with the following. test.php <?phpinfo();?> open a browser and point at test.php Look at the http variables section. Now try adding some variables to it eg : open the browser, and open a url like the following: http://localhost/test.php?x=y&foo=bar Now look at the PHP Variables section. you should see that php_self == test.php, have a look and see what variable holds ?x=y&foo=bar yup, its query_string Got it? Now use something like print "<a href='$PHP_SELF$?$QUERY_STRING'>url link</a>"; okayla! A better way might be to use sessions. Have a look at php.net or phpbuilder.com for details. Lawrence. -----Original Message----- From: Ardani Sarjito [mailto:sarjito@iprimus.com.au] Sent: September 4, 2001 9:04 AM To: php_list Subject: [PHP] refer to the same page AGAIN! Please... Hi! I still have the same problem. How Do I write a string on the a page using input from the same page without deleting the previous written string. I'd like to use PHP_SELF. Is it possible? Thank you! Ardani -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#65856) next »