ciao,
ho provato a guardare i post e modificarli ma non ci riesco. http://forum.html.it/forum/showthrea...r&pagenumber=2
ho controllato questo post ma non riesco a capirci nulla...
la differenza da quello postato in precedenza è che entrambi lavoriamo con dreamveawer ma la pagina 2 ovvero quella del redirect a me non funziona. così ho provato a scrivere questo ma nemmeno questo sembra funzionare

pagina 1 ovvero "modificanews.asp"

<%@LANGUAGE="VBSCRIPT"%>


<%
Dim rs_news__MMColParam
rs_news__MMColParam = "1"
If (Request.QueryString("Id") <> "") Then
rs_news__MMColParam = Request.QueryString("Id")
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 WHERE Id = " + Replace(rs_news__MMColParam, "'", "''") + ""
rs_news.CursorType = 0
rs_news.CursorLocation = 2
rs_news.LockType = 1
rs_news.Open()

rs_news_numRows = 0
%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>FCKeditor - Samples - Posted Data</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="invia_commentiNews2.asp" METHOD="POST" name="form1">


<table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#FF0000" id="Notizie">
<tr bgcolor="#FF0000">
<td colspan="4"> <div align="center"><font color="#FFFFFF" size="2" face="Tahoma">Modifica
commento
</font></div></td>
</tr>
<tr bgcolor="#FFFFCC">
<td colspan="4"> </td>
</tr>
<tr>
<td width="16" bgcolor="#FFFFCC"> </td>
<td width="40" valign="top" bgcolor="#FFFFCC"> <div align="right"><font color="#000000" size="2" face="Tahoma">titolo:</font></div>


desc_small</td>
<td width="5" bgcolor="#FFFFCC"> </td>
<td width="479" bgcolor="#FFFFCC"> <input name="Titolo" type="text" id="Titolo" value="<%=(rs_news.Fields.Item("Titolo").Value)%>" size="40">


<input name="Titolo2" type="text" id="Titolo2" value="<%=(rs_news.Fields.Item("Titolo2").Value)%> " size="40" maxlength="255"></td>
</tr>
<tr>
<td bgcolor="#FFFFCC"> </td>
<td colspan="3" bgcolor="#FFFFCC"> </td>
</tr>
<tr>
<td width="16" bgcolor="#FFFFCC"> </td>
<td colspan="3" bgcolor="#FFFFCC"> <div align="right"></div></td>
</tr>
<tr>
<td width="16" bgcolor="#FFFFCC" height="309"> </td>
<td width="40" valign="top" bgcolor="#FFFFCC" height="309"> <div align="right"><font color="#000000" size="2" face="Tahoma">Corpo:</font></div></td>
<td width="5" valign="top" bgcolor="#FFFFCC" height="309"> </td>
<td bgcolor="#FFFFCC" height="309">


<%
Dim oFCKeditor
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = "../FCKeditor/"
oFCKeditor.Value=(rs_news.Fields.Item("corpo").Val ue)
oFCKeditor.Create "corpo"
%></td>
</tr>
<tr>
<td bgcolor="#FFFFCC"> </td>
<td colspan="2" valign="top" bgcolor="#FFFFCC"> </td>
<td bgcolor="#FFFFCC"> <input name="id" type="text"id="Id" Value="<%=(rs_news.Fields.Item("Id").Value)%> "> <----ho preferito vedere l'id che stavo modificando....

</td>
</tr>
<tr>
<td bgcolor="#FFFFCC"></td>
<td colspan="2" valign="top" bgcolor="#FFFFCC"> </td>
<td bgcolor="#FFFFCC">
<p align="center"> <input type="submit" name="Submit" value="Invia"></td>
</tr>
<tr>
<td bgcolor="#FFFFCC"> </td>
<td colspan="2" valign="top" bgcolor="#FFFFCC"> </td>
<td bgcolor="#FFFFCC"> </td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="form1">
</form>
</html>
<%
rs_news.Close()
Set rs_news = Nothing
%>


da qui passiamo alla pagina 2 ovvero "inviacommenti2.asp"

<%@LANGUAGE="VBSCRIPT"%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<%
' *** Edit Operations: declare variables

Dim MM_editAction
Dim MM_abortEdit
Dim MM_editQuery
Dim MM_editCmd

Dim MM_editConnection
Dim MM_editTable
Dim MM_editRedirectUrl
Dim MM_editColumn
Dim MM_recordId

Dim MM_fieldsStr
Dim MM_columnsStr
Dim MM_fields
Dim MM_columns
Dim MM_typeArray
Dim MM_formVal
Dim MM_delim
Dim MM_altVal
Dim MM_emptyVal
Dim MM_i

MM_editAction = CStr(Request.ServerVariables("SCRIPT_NAME"))
If (Request.QueryString <> "") Then
MM_editAction = MM_editAction & "?" & Server.HTMLEncode(Request.QueryString)
End If

' boolean to abort record edit
MM_abortEdit = false

' query string to execute
MM_editQuery = ""
%>



<%
' *** 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") + ""
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__MMColParam
rs_news__MMColParam = "1"
If (Request.Form("Id") <> "") Then
rs_news__MMColParam = Request.Form("Id")
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 WHERE Id = " + Replace(rs_news__MMColParam, "'", "''") + ""
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
%>

grazie a chiunque abbia voglia e tempo da dedicarci.
tiziano