Ciao.
Ho questa select dinamica:
Quando apro il form, mi visualizza un elenco di nomi, se seleziono un valore esegue l'evento onchange e correttamente sostituisce il nome selezionato con l'ID abbinato a quel nome.codice:<select nam="uo" class="ctrl" onChange="window.document.location='form.asp?zn=<%=zn%>&uo='+this.options[this.selectedIndex].value;"> <% UO = request.querystring("uo") %> <% if Uo <> "" then %> <option value="<%=Uo%>" selected="selected"><%=Uo%></option> <% else %> <option selected>Seleziona</option> <% end if If Not rec.EOF Then Do While Not rec.EOF %> <option value= "<% = Trim(rec("id")) %>"><% = Trim(rec("zn")) %></option> <% rec.MoveNext Loop end if rec.close end if end if %> </select>
Come posso fare per continuare a far visualizzare il nome, ma passando nelle query successive sempre l'ID?
Grazie

Rispondi quotando


