Jason,
Drop down lists are working great now. I'm facing another issue.
How do I pass the value of child list to confim page?
Also at the moment parent list (country) is passing id numbers, is there a way to pass the country name?
I am using ::::: value="<?php echo $_SESSION['name01']; ?>" :::::for text field to pass values and to be able to go back and force between a form page and confirm page, and eventually store the data to database.
:::::: Parent list (country) ::::::::
<select name="country" onchange="WA_FilterAndPopulateSubList(list_WAJA,MM_findObj('country'),MM_findObj('list'),0,0,false,': ')">
<option value="">Choose a country</option>
<?php
do {
?>
<option value="<?php echo $row_country['id']?>"><?php echo $row_country['RewardCountryCategory']?>
</option>
<?php
} while ($row_country = mysql_fetch_assoc($country));
$rows = mysql_num_rows($country);
if($rows > 0) {
mysql_data_seek($country, 0);
$row_country = mysql_fetch_assoc($country);
}
?>
</select>
:::::: Chile list (shops) ::::::::
<select name="list">
<option value=" "></option>
<?php
do {
?>
<option value="<?php echo $row_list['id']?>"><?php echo $row_list['RewardCountryName']?>
</option>
<?php
} while ($row_list = mysql_fetch_assoc($list));
$rows = mysql_num_rows($list);
if($rows > 0) {
mysql_data_seek($list, 0);
$row_list = mysql_fetch_assoc($list);
}
?>
</select>