salve ho un esigenza particolare, ovvero quello di inserire in una textfield delle parole divise da loro da semplice spazio e con uno script splittarle, metterle dentro a un array per inserirle singolarmente e tutte insieme in un un db...
io ho provato una cosa del genere
<%
Dim Arr
Arr = split (Request.Form("tagsname"), " ")
if IsArray(Arr) then
for i = 0 to Ubound(Arr)
Set Command1 = Server.CreateObject ("ADODB.Command")
Command1.ActiveConnection = MM_TotalitaVarie_STRING
Command1.CommandText = "INSERT INTO Tags (nometag) VALUES ("& Arr(i) &") "
Command1.CommandType = 1
Command1.CommandTimeout = 0
Command1.Prepared = true

Rispondi quotando