RE: [PHP-WIN] Pass variables thro Hyperlinks.................
| From: | Boget, Chris | Date: | Mon, 17 Jul 2000 12:54:04 +0000 |
| Subject: | RE: [PHP-WIN] Pass variables thro Hyperlinks................. | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-1118@lists.php.net to get a copy of this message | ||
> Hi,
> can anyone tell me as to how i can pass a variable thro' a
> link to a php script to access a MySql database.
<script language="php">
$var1 = "joe";
$var2 = "bob";
$var3 = "briggs";
echo "<a
href=\"www.mysite.com/page1.php3?var1=$var1&var2=$var2&var3=$var3\">Click</a
>\n";
</script>
In php3, use the variables to access you db.
Chris