ciao Michele,
immagino sia stufo dei miei post io ci provo ma non ottengo i risultati sperati.
ciò che riesco a capire è perchè nella prima pagina siano inseriti come nel post già citato:
codice:
<body>
<label></label>
<form name="form1" method="post" action="ZZZ_salva_redirect.asp">
  

Anamnesi
    <input name="hidden_id_visita" type="hidden" id="hidden_id_visita" value="<%=(Recordset1.Fields.Item("id_visita").Value)%>">  
    <input name="hidden_id_paz" type="hidden" id="hidden_id_paz" value="<%=(Recordset1.Fields.Item("ID").Value)%>">
non capisco i due id... solitamente uno nella tabella ha un id qui ci sono due id_vista e id sbaglio io?

ho inserito nella pagina modificanews.asp il seguente codice:


codice:
<%
Dim oFCKeditor
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = "../FCKeditor/"
oFCKeditor.Value=(rs_news.Fields.Item("corpo").Value)
oFCKeditor.Value = content
oFCKeditor.Create "corpo"
%>
mentre nella pagina inviacommenti2.asp ho inserito il seguente codice:

codice:
...
...
...
<%
' *** Update Record: set variables

If (CStr(Request("MM_update")) = "form1" And CStr(Request("MM_recordId")) <> "") Then

  MM_editConnection = MM_pp_STRING
  MM_editTable = "news"
  MM_editColumn = "Id"
  MM_recordId = "" + Request.Form("MM_recordId") + ""  <-----in questo modo recupero i dati id dalla form è giusto?   
  MM_editRedirectUrl = "InviaNews3.asp" 
  MM_fieldsStr  = "titolo|value|titolo2|value|corpo|value"
  MM_columnsStr = "Titolo|',none,''|Titolo2|',none,''|corpo|',none,''"

  ' create the MM_fields and MM_columns arrays
  MM_fields = Split(MM_fieldsStr, "|")
  MM_columns = Split(MM_columnsStr, "|")
  
  ' set the form values
  For MM_i = LBound(MM_fields) To UBound(MM_fields) Step 2
    MM_fields(MM_i+1) = CStr(Request.Form(MM_fields(MM_i)))
  Next

  ' append the query string to the redirect URL
  If (MM_editRedirectUrl <> "" And Request.QueryString <> "") Then
    If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0 And Request.QueryString <> "") Then
      MM_editRedirectUrl = MM_editRedirectUrl & "?" & Request.QueryString
    Else
      MM_editRedirectUrl = MM_editRedirectUrl & "&" & Request.QueryString
    End If
  End If

End If
%>
<%
' *** Update Record: construct a sql update statement and execute it

If (CStr(Request("MM_update")) <> "" And CStr(Request("MM_recordId")) <> "") Then

  ' create the sql update statement
  MM_editQuery = "update " & MM_editTable & " set "
  For MM_i = LBound(MM_fields) To UBound(MM_fields) Step 2
    MM_formVal = MM_fields(MM_i+1)
    MM_typeArray = Split(MM_columns(MM_i+1),",")
    MM_delim = MM_typeArray(0)
    If (MM_delim = "none") Then MM_delim = ""
    MM_altVal = MM_typeArray(1)
    If (MM_altVal = "none") Then MM_altVal = ""
    MM_emptyVal = MM_typeArray(2)
    If (MM_emptyVal = "none") Then MM_emptyVal = ""
    If (MM_formVal = "") Then
      MM_formVal = MM_emptyVal
    Else
      If (MM_altVal <> "") Then
        MM_formVal = MM_altVal
      ElseIf (MM_delim = "'") Then  ' escape quotes
        MM_formVal = "'" & Replace(MM_formVal,"'","''") & "'"
      Else
        MM_formVal = MM_delim + MM_formVal + MM_delim
      End If
    End If
    If (MM_i <> LBound(MM_fields)) Then
      MM_editQuery = MM_editQuery & ","
    End If
    MM_editQuery = MM_editQuery & MM_columns(MM_i) & " = " & MM_formVal
  Next
  MM_editQuery = MM_editQuery & " where " & MM_editColumn & " = " & MM_recordId

  If (Not MM_abortEdit) Then
    ' execute the update
    Set MM_editCmd = Server.CreateObject("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_editConnection
    MM_editCmd.CommandText = MM_editQuery
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close

    If (MM_editRedirectUrl <> "") Then
      Response.Redirect(MM_editRedirectUrl)
    End If
  End If

End If
%>
<%
Dim rs_news
Dim rs_news_numRows

Set rs_news = Server.CreateObject("ADODB.Recordset")
rs_news.ActiveConnection = MM_pp_STRING
rs_news.Source = "SELECT * FROM news"
rs_news.CursorType = 0
rs_news.CursorLocation = 2
rs_news.LockType = 1
rs_news.Open()

rs_news_numRows = 0
%>




<html>
	<head>
		<title>prova</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta name="robots" content="noindex, nofollow">
		<link href="../sample.css" rel="stylesheet" type="text/css" />
	</head>
	<body>
<form ACTION="<%=MM_editAction%>" name="form1" method="POST">
  <input name="titolo" type="text" id="titolo">
  <input name="titolo2" type="text" id="titolo2">
        <textarea name="corpo" rows="5" id="corpo"></textarea>
        <input type="hidden" name="MM_update" value="form1">
        <input type="hidden" name="MM_recordId" value="<%= rs_news.Fields.Item("Id").Value %>">
</form>

</body>
</html>
<%
rs_news.Close()
Set rs_news = Nothing
%>
cosa devo ancora controllare?
grazie