Passing variables to a PHP script on clicking a hyperlink

From: Date: Fri, 24 Aug 2007 06:05:58 +0000
Subject: Passing variables to a PHP script on clicking a hyperlink
Groups: php.db php.general 
Request: Send a blank email to php-general+get-261210@lists.php.net to get a copy of this message
Hello, How can I pass variables on clicking a hyperlink to a PHP script? I have 5 hyperlinks, all pointing to the same PHP script. However, on clicking each hyperlink a different value of the variable needs to be passed to the PHP script. i.e. I have 5 databases from which I want to obtain information, however the information should be displayed only when the user clicks on the hyperlink for that database. How can I pass the database name to the PHP script? How would the script know which database to get information from? I am new to PHP so any help would be greatly appreciated. I hope my question is clear. Thanks, Suamya. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.

« previous php.general (#261210) next »