vi faccio vedere come ho fatto:
codice asp:
codice as:codice:set rsver=server.CreateObject("adodb.recordset") sqlver="select * from user where un='"&un&"'" rsver.open sqlver,conn,3,3 if rsver.bof=false then 'invio delle informazioni a flash testo="REGISTRAZIONE FALLITA! LA USER NAME INSERITA RISULTA: ESISTENTE. RIPETERE LA REGISTRAZIONE SCEGLIENDO UNA USER NAME DIVERSA." response.write("txtthanks="&testo) else 'response.write("non esiste") 'scrivo il nuovo record quindi il nuovo utente :) set rs=server.CreateObject("adodb.recordset") sql="INSERT INTO user (nome,cognome,mail,tel,cell,fax,indirizzo,citta,prov,un,pw,data_reg) VALUES ('"&nome2&"','"&cognome2&"','"&mail&"','"&tel&"','"&cell&"','"&fax&"','"&ind2&"','"&cit2&"','"&prov2&"','"&un&"','"&pw&"','"&data&"')" 'response.write sql rs.open sql,conn,3,3 testo="GRAZIE PER ESSERTI REGISTRATO. TI E' STATA INVIATA UNA E- MAIL DOVE VENGONO RIEPILOGATI I DATI CHE HAI USATO PER LA REGISTRAZIONE. PER ACCEDERE ALL'AREA RISERVATA BASTA INSERIRE USER NAME E PASSWORD SCELTI NELLA SEZIONE - LOGIN -." response.write("txtthanks="&testo) end if
Non mi funzionacodice:dati = new LoadVars(); //variabili post dati.nome = _parent.nome.text; dati.cognome = _parent.cognome.text; dati.mail = _parent.mail.text; dati.tel = _parent.tel.text; dati.cell = _parent.cell.text; dati.fax = _parent.fax.text; dati.ind = _parent.res.text; dati.cit = _parent.cit.text; dati.prov = _parent.prov.text; dati.un = _parent.un.text; dati.pw = _parent.pw.text; dati.sendAndLoad("insdatiuser.asp", dati, "post"); returntxt=txtthanks _parent.puls.thanks._visible = true; _parent.puls.thanks.txtthanks.text = returntxt; gotoAndStop(2);![]()
![]()
Cioè il record non me lo scrive oppure me lo scrive (quindi il controllo sulla user name funziona), ma non mi scrive il messaggio nel campo di testo dinamico![]()


Rispondi quotando