multiple select: Selections not highlighted
am 21.05.2011 17:11:54 von Fahim M--bcaec5555258a377f704a3caa82a
Content-Type: text/plain; charset=ISO-8859-1
**
------------------------------
Hi
I implemented multiselect from the result of mysql query. When I print the
$val (in the end of the code below), it correctly shows all the option being
selected in _GET variable but the items are not selected(highlighted) in the
box. I am guessing the problem is with the declaration and usage of variable
'arrTypeTarget' but may be wrong.
Any suggestion?
Thanks
Fahim
$conn = mysql_connect('localhost', 'root', 'fahim');
$db = mysql_select_db('rugit',$conn);
if (!$db) die("Unable to connect to MySQL: " . mysql_error());
$arrTypeTarget = null; //declare vars
if(isset($_GET["arrTypeTarget"]) && is_string($_GET["arrTypeTarget"]))
{
$arrTypeTarget = $_GET["arrTypeTarget"];
}
?>
----
Fahim
--bcaec5555258a377f704a3caa82a--