[eluser]ranjitbd[/eluser]
[quote author="Cshamoh" date="1260293639"]wheres question??[/quote]
Code:
// $itinerary['package'] contains the result set from database. i have to send the package duration
// according to user when onchange() event will occur
<option value="<?php echo $package['id'];?>">
<?php echo $name['package_name'];
// here generates $duration that i have to pass but how i will pass?
$duration = $package['duration']);
?>
</option>
// so this span will contain the duration.
// how i can use this value in the following loop? commented in the above code
// actually i have to save description for every day of duration...so i need to pass the total
// duuration and i have to use that value in the loop...
// i can do it in the combo box <option value="<?php echo $duration;?>"> by showDayNumber(this.value)
// but i need the $package['id'] in the next submitted page.
all the question is commented inside the code block