questo è il form che uso per l'inserimento

<form method=post action="reg.asp">
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH="100%" class=basket style="padding-left:20px;padding-top:10px; " align=center>
<tr>
<td>[img]img-main/point.gif[/img]CODICE </td>
<td><input type="text" name="codice" size=35 maxlength="255"></td>
</tr>
<tr>
<td width="100%" colspan=2 style=" background-image: url(img-main/riga.gif); background-repeat:repeat-x; height:1px;"></td>
</tr>


</tr>
<tr>
<td></td>
<td><input type="image" src="img-main/but-registra.gif" width="79" height="23" style="border: none; background-color: transparent;"></td>
</tr>
</table>
</form>

e poi uso questo per registrare ma mi non gira perchè???



<%
codice=replace(request.form("codice"),"'","‘")



set rst=Server.CreateObject("ADODB.Recordset")
varSQL="SELECT codice FROM prova "
rst.Open varSQL, Db


set rst2=Server.CreateObject("ADODB.Recordset")
varSQL="INSERT INTO prova VALUES ("&codice&")"
rst2.Open varSQL, Db




response.redirect("index.asp)

%>