Scusate ma ora sono di fronte a un problema che non riesco a risolvere nemmeno con la funzione cerca:

Allora.. l'esempio che ho scaricato "per le select dinamiche" è questo:

http://www.studio-mas.com/dinamic_select/

C'è disponibile anche il sorgente.. ma non sono riuscito in nessun modo ad AGGIUNGERE una QUARTA SELECT .. non capisco per che motivo

Io ho fatto così:


<%
value = replace(request("value")&"", "'", "&#39")

fieldtype = request("type")
set ds = new DinamicSelect
ds.DataBase = "/mdb-database/esempio.mdb"
if fieldtype = "Ubicazione" then
' UBICAZIONE

ds.sql = "select distinct Us_Ubicazione from Tab_Users"
ds.DefaultText = "Seleziona Ubicazione"
ds.SelectValue = "Us_Ubicazione"
ds.SelectText = "Us_Ubicazione"
ds.evento = " onchange=""caricaPagina('dbesempio.asp?type=Utente &amp;value=' " & "+ this.options[this.options.selectedIndex].value,'OPZIONE_Utente');"""
ds.NomeCampo = "Ubicazione"
end if
' NOME E COGNOME UTENTE
if fieldtype = "Utente" then

ds.sql = "select * from Tab_Users where Us_Ubicazione ='"& value&"'"
ds.DefaultText = "Seleziona il tuo Nome e Cognome"
ds.selected = Value
ds.SelectValue = "Us_Nome_e_Cognome"
ds.SelectText = "Us_Nome_e_Cognome"
ds.evento = " onchange=""caricaPagina('dbesempio.asp?type=Uffici o&amp;value='+ " & "this.options[this.options.selectedIndex].value,'OPZIONE_Ufficio');"""
ds.NomeCampo = "Nome e Cognome utente"

end if


'UFFICIO
if fieldtype = "Ufficio" then

ds.sql = "select Det_Ufficio from Tab_Dettagli where Det_Nome_e_Cognome = '"&value&"'"
ds.DefaultText = "Seleziona Ufficio"
ds.selected = value
ds.SelectValue = "Det_Ufficio"
ds.SelectText = "Det_Ufficio"
ds.evento = " onchange=""caricaPagina('dbesempio.asp?type=Telefo no&amp;value='+ " & "this.options[this.options.selectedIndex].value,'OPZIONE_Telefono');"""
ds.NomeCampo = "Ufficio"

end if


'TELEFONO
if fieldtype = "Telefono" then

ds.sql = "select Det_Telefono from Tab_Dettagli where Det_Nome_e_Cognome = '"&value&"'"
ds.DefaultText = "Seleziona Telefono"
ds.selected = value
ds.SelectValue = "Det_Telefono"
ds.SelectText = "Det_Telefono"
ds.evento = " "
ds.NomeCampo = "Telefono"
end if

Response.Write (ds.CreaDinamicSelect())
set ds = nothing
%>


Ovviamente modificando anche la INDEX.ASP nella quale ci sono le 4 select da popolare.
Il problema è che se ne popolano solo 3 e alla 4, quella del numero di TELEFONO non mi popola la select.

Sapete illuminarmi ?? Grazie mille!!!