On Tue, 23 Sep 2003 18:01:52 +0000, Duane Phillips wrote:
How do I write a hyperlink that also passes a value to the destination
php page?
Thanks in advance.
~Duane.
http://servername/index.php?var1=hello&var2=monkey
This will pass an HTTP GET query to the server. Everything after the
question mark is the query, and is "seen" by PHP in the following ways:
* As the $_SERVER["QUERY_STRING"] variable
* As part of the $_SERVER["REQUEST_URI"] variable
* As part of the _SERVER["argv"] variable
* And in the $_GET and $_REQUEST and variables
Also, if register_globals is ON, the variables $var1 and $var2 will be
created.
I guess this is what you were asking...
--
Jeffrey D. Silverman | jeffrey AT jhu DOT edu
Johns Hopkins University | Baltimore, MD
Website |
http://www.wse.jhu.edu/newtnotes/