Allora... ho creato la pagina del profilo utente che restitusce i dati di quello specifico utente
codice:
:<%
Option Explicit
response.buffer = True
dim id, nome, cognome
nome = request.querystring("utente")
id = request.querystring("id")
Dim Conn, SQL, Rec
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "driver={Microsoft Access Driver (*.mdb)};dbq="& server.MapPath("/utenti.mdb")
SQL = "SELECT * FROM tbl where id = " &id
Set rec = Server.CreateObject("ADODB.Recordset")
Set Rec = Conn.Execute(SQL)
IDCD = rec("id")
%>
<form method="POST" action="formnewmessage.asp?IDCD=<%=IDCD%>">
nella pagina formnewmessage.asp ho scritto:
codice:
<%
Option Explicit
on error resume next
IDCD = Request.queryString("IDCD")
Dim connStr
connStr = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("/utenti.mdb")
Dim rs
Set rs = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT * from tbl WHERE ID ="&IDCD
rs.Open strSQL, connStr, 2, 2
rs.Close
Set rs = Nothing
connStr.Close
set connStr = Nothing
%>
<form method="POST" action="newmessage.asp?IDCD=<%=IDCD%>" >
più i campi del form... mi sembra però di fare un giro troppo lungo per spedire un msg privato... vado bene o sbaglio in qualche cosa? :master: