Hi all,
I currently have the following select box:
<select name="<?php echo $row["movie_id"]; ?>" onChange="UpdateQty(this)">
<?php
for($i = 1; $i <= 20; $i++)
{
echo "<option ";
if($row["qty"] == $i)
{
echo "SELECTED ";
}
echo ">" . $i . "</option>";
}
?>
</select>
and the javascript that refreshes the page:
<script language="JavaScript">
function UpdateQty(item)
{
movie_id = item.name;
newQty = item.options[item.selectedIndex].text;
document.location.href = 'cart.php?action=update&movie_id='+movie_id+'&qty='+newQty;
}
</script>
This all works fine except if the user updates the selectbox value and then users the browsers back button to go back it goes to the old selectbox values.
I want it to go to the original page.
Any ideas on how to do that?
Cheers,
micmac