ecco il codice
codice:
function load_change(){
var id;
if (document.checkout_address.rivenditori.options [document.checkout_address.rivenditori.selectedIndex].value!=""){
id=document.checkout_address.rivenditori.options[document.checkout_address.rivenditori.selectedIndex].value;
document.location.href = "checkout_shipping.php?rivenditori="+id;
}
}
<select name="rivenditori" onchange="javascript:load_change();">
<option value="">-SELEZIONA-</option>
<?
while ($array=mysql_fetch_array($result)){
?>
<option value="<?echo $array[customers_id];?>">
<? echo $array[entry_company];?>
</option>
<?
}
?>
</select>