hi,
i got problem regarding client side combo boxes as u see kunde combo link associated with projekt combo,i mean to say on change kunde i can see associated link in project so what i did i use javascript to achieve this,is it possible to use php to get achieve this one as u can see these kunde and projekt values r coming from database but i hard coded in javascript to get associated value
for eg. Kunde having values
apple
mango
pine
and when change on apple u get values in project like
tasty
sweet
nutitious
for more clear http://www.javascriptkit.com/script/cut183.shtml
is it possible to use PHP to achieve this as i dont want to hard code the projekt values in javascript like i did
group[0][0]=new Option("tasty","tatsy");
group[0][1]=new Option("mango","mango");
group[0][2]=new Option("nutitious","nutitious");
<td align="center">
<select name="kunde" onchange="redirect(this.options.selectedIndex)">
<? foreach($kunden as $value) { ?>
<option value="<?= $value ?>" <? if ($HTTP_POST_VARS['kunde'] == $value){ echo "SELECTED";}?>><?= $value ?></option>
<? } ?>
</select>
</td>
<td align="center">
<select name="projekt">
<? foreach($hprojekt as $value) { ?>
<option value="<?= $value ?>" <? if ($HTTP_POST_VARS['projekt'] == $value){ echo "SELECTED";}?>><?= $value ?></option>
<? } ?>
</select>
</td>
<script language="javascript" src="doublecombo.js"></script>
please let me know is it possible to get this task done by PHP as this one is server side
thanks