try: switch ($_REQUEST["sw"]){ case "SQL": // SQL Stuff break;
case "Toad": // Toad break; default: // Default Option break; } "A. Mikkelsen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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