Hi,
It is probably a register globals problem. If register globals is set to off
in your php.ini you have to access $sw as $_GET['sw']
hth Henrik Hornemann
-----Original Message-----
From: A. Mikkelsen
To: [EMAIL PROTECTED]
Sent: 28-02-03 10:52
Subject: [PHP-WIN] Problem with links....
Hi
I'm using
<A HREF="main.php?sw=SQL" TARGET="main">SQL Navigator</A><br>
to link to main.php. The link to the page works but not the ?sw=SQL
path.
In main.php i use the following to check the ?sw=
SWITCH ($sw)
{
CASE ("toad"):
$Where_Text = "AND Software = 'Toad'";
$Choosen_SW = "Toad";
BREAK;
CASE ("SQL"):
$Where_Text = "AND Software = 'SQL Navigator'";
$Choosen_SW = "SQL Navigator";
BREAK;
}
My problem is that is doesn't seem to send the sw info th the main.php
page.
Does anybody have an ideer to what is wrong.
PHP is the latast version, and i added the php_mssql.dll extension.
//Anders
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php