Apres les différents conseils, cela plante toujours et je ne sais pas quoi faire....
Explications :
Après avoir récupéré l'ancienne news, on écrit ces modifs, ensuite on arrive sur cette page pour prévisualiser
....
<%
avtg = Request.Form("avtg")
%>
....
<%
function tarea(text)
tarea=REPLACE(text,"&","&")
tarea=REPLACE(tarea,"<","<")
tarea=REPLACE(tarea,VbCrLf,"<br>")
end function
%>
<FORM method="POST"
action="updt_avtg.asp">
<table width="50%" border="1">
<tr>
<td><%= tarea(avtg) %></td>
</tr>
</table>
<input type="Submit" value="Valider la news">
</FORM>
Et on valide et on "arrive" sur la page d'update et ca plante
J'ai donc mis une requete SQL pour préciser la bonne ligne (hpg_id = "3") pour remplacer la bonne news (hpg_avtg) dans la table homepage...
Je ne vois pas ce que je dois faire de plus
<!--#include virtual="/adovbs.inc"-->
<!--#include file="dbq.asp" -->
<%
SQL="SELECT homepage.* FROM homepage where homepage.hpg_id="3" "
Set objRS = Server.CreateObject("ADODB.Recordset")
objRS.Open SQL, parising, adOpenDynamic, adLockOptimistic, adCmdTable
objRS("hpg_avtg") = Request.Form("avtg")
objRS.Update
objRS.Close
Set objRS = Nothing
%>
<%
parising.Close
Set parising = Nothing
Response.Redirect "viewavtg.asp"
%>
Tch