Allora mi spiego meglio...adesso l'aggiornamento funziona bene,selezionando ad esempio un valore nella prima select,la pagina si aggiorna e tiene in memoria il valore.
Però il form che sto creando (prenotazione posti) ha due select distinte,una per i posti normali e un'altra per i posti per disabili...quindi l'utente deve avere la possibilità di poter selezionare e prenotare entrambi i tipi di posti.
Invece adesso come adesso,se per esempio seleziono 5 posti nella prima select e 2 nella seconda,il primo valore si perde nel nulla....come posso ovviare al problema???
codice:
<table align="center" valign="middle" border="1" cellspacing="0" width="50%" cellpadding="0">
<tr>
<td width="40%">
<font size="2" color="red">SELEZIONA NUMERO POSTI</font>
</td>
<td valign="center" width="15%" >
<form method="post" action="pagina.asp" name="caselle1" id="caselle1">
<select name="casellaRiepilogo1" onchange="document.location.href='prenota.asp?casellaRiepilogo1='+this.value">
<%
dim i
for i=0 to 22
response.write "<option value=" & i & ">" &i & "</option>"
next
%>
</select>
</form>
</td>
<td width="10%">
[img]disabili.gif[/img]
</td>
<td>
<form name="caselle2" method="post">
<select name="casellaRiepilogo2" onchange="document.location.href='prenota.asp?casellaRiepilogo2='+this.value">
<%
dim j
for j=0 to 2
response.write "<option value=" & j & ">" & j & "</option>"
next
%>
</select>
</form>
</td>
</tr>
<tr>
</tr>
<tr>
<td colspan="4">
<table>
<form name="opzione" method="pagina2.asp" action="post">
<tr>
<td width="20%">
<input type="radio" name="radiobutton" value="Simple">Simple
</td>
<td width="20%">
<input type="radio" name="radiobutton" value="SimpleBike">Simple Bike
</td>
<%
dim sel,sel1,numposti
sel=int(request.QueryString("casellaRiepilogo1"))
sel1=int(request.QueryString("casellaRiepilogo2"))
numposti=sel+sel1
response.write numposti
if numposti>=20 then
response.write "<td width='20%'><input type='radio' name='radiobutton' value='Half'>Half-Day</td>"
response.write "<td width='20%'><input type='radio' name='radiobutton' value='All'>All-Day</td>"
response.write "<td width='20%'><input type='radio' name='radiobutton' value='Half'>Bike and Guide</td>"
end if
%>
</tr>
</table>
</td>
</tr>
</TABLE>