link between 2 combo's

Hi

Question regarding linked combo’s

When i call php script with hardcoded the parent
like title.php?parent=dolly dots it’gives me the right xml file
But i can’t figgur out how to do it from the first combo.

My code

	<body onload="doOnLoad()">
        <div class="content">
<link rel="STYLESHEET" type="text/css" href="dhtmlxcombo.css">
<script src="dhtmlxcommon.js"></script>
<script src="dhtmlxcombo.js"></script>
<script src="dhtmlxcombo_group.js"></script>

<script>function doOnLoad() {
    var z2 = new dhtmlXCombo("selectartist", "artist", 200);
    var z = new dhtmlXCombo("selecttitle", "title", 200 );

	z2.enableFilteringMode(true, "artist.php", true);
	z.enableFilteringMode(true, "title.php" , true);


	}</script>
	
	
<div id="selectartist" style="width:100px; height:30px;"></div>

<div id="selecttitle" style="width:100px; height:30px;"></div>

        </div>

i’ve tryed some like childcombo like

z.attachChildCombo(z2,"title.php");

That didn’t work.

url of test :

radiosoundfm.dyndns.org/combo/combo.html

What i want is

Type in artist with autocompleet (works)
after selcting artist, type in with autocompleet and also a dropdown with allready values in it.

// $sql = “SELECT artist, title FROM songlist WHERE artist = “.$_GET[“parent”].” AND title like '”.mysql_real_escape_string($mask)."%’";

	$sql = "SELECT artist, title FROM songlist WHERE artist = 'dolly dots' AND title like '".mysql_real_escape_string($mask)."%'";

Can’t get the syntax right.

Second one is working but fixed at artist=dolly dots
This should be the parent value.

Who know’s the right syntax?

Yeap sort it out by myself,

string to use is

	$sql = "SELECT artist, title FROM songlist WHERE artist = '".$_GET["parent"]."' AND title like '".mysql_real_escape_string($mask)."%'";

still two things to do…