Originariamente inviato da optime
controlla che le request.form leggano e contengano effettivamente qualcosa!
Grazie della risposta Optime (sempre veloce come la luce è...
)
In realtà mi sono accorto che nel database il record rimane, vuoto ma rimane...
Help!!!
Ti posto anche il form
codice:
<FORM ACTION="SuccessoModifica.asp?Id=<%=Rs("Id")%>" METHOD="Post" enctype="multipart/form-data">
<table width="80%" border="1" align="center">
<tr>
<td colspan="2" align="center" class="big">Modifica Automobili</td>
</tr>
<tr>
<td width="50%"></td>
<td width="50%"></td>
</tr>
<tr>
<td>Marca: </td>
<td><label>
<%
Set rsMarche = Server.CreateObject("ADODB.RecordSet")
sql = "SELECT * FROM Marche ORDER By Marche ASC"
rsMarche.Open sql, Conn, 3, 3
%>
<select name="Marche" id="Marche">
<%
Do Until RsMarche.EOF
%>
<option value="<%=RsMarche("IdMarche")%>"<%if RsMarche("IdMarche") = Rs("IdMarche") then%> selected="selected"<%end if%>><%=RsMarche("Marche")%></option>
<%
RsMarche.MoveNext
Loop
%>
</select>
</label></td>
</tr>
<tr>
<td>Alimentazione:</td>
<td><label>
<select name="Alimentazioni" id="Alimentazioni">
<%
Do Until RsAlimentazioni.EOF
%>
<option value="<%=RsAlimentazioni("IdAlimentazioni")%>"<%if RsAlimentazioni("IdAlimentazioni") = Rs("IdAlimentazioni") then%> selected="selected"<%end if%>><%=RsAlimentazioni("Alimentazioni")%></option>
<%
RsAlimentazioni.MoveNext
Loop
%>
</select>
</label></td>
</tr>
<tr>
<td>Categoria:</td>
<td><label>
<select name="Categorie" id="Categorie">
<%
Do Until RsCategorie.EOF
%>
<option value="<%=RsCategorie("IdCategorie")%>"<%if RsCategorie("IdCategorie") = Rs("IdCategorie") then%> selected="selected"<%end if%>><%=RsCategorie("Categorie")%></option> <%
RsCategorie.MoveNext
Loop
%>
</select>
</label></td>
</tr>
<tr>
<td>Stato:</td>
<td><label>
<select name="Stati" id="Stati">
<%
Do Until RsStati.EOF
%>
<option value="<%=RsStati("IdStati")%>"<%if RsStati("IdStati") = Rs("IdStati") then%> selected="selected"<%end if%>><%=RsStati("Stati")%></option>
<%
RsStati.MoveNext
Loop
%>
</select>
</label></td>
</tr>
<tr>
<td>Modello:</td>
<td><label>
<input type="text" name="Modello" id="Modello" value="<%=Rs("Modello")%>">
</label></td>
</tr>
<tr>
<td>Immatricolazione:</td>
<td><label>
<input type="text" name="Immatricolazione" id="Immatricolazione" value="<%=Rs("Immatricolazione")%>">
</label></td>
</tr>
<tr>
<td>Prezzo:</td>
<td><label>
<input type="text" name="Prezzo" id="Prezzo" value="<%=Rs("Prezzo")%>">
</label></td>
</tr>
<tr>
<td>Chilometri:</td>
<td><label>
<input type="text" name="Km" id="Km" value="<%=Rs("Km")%>">
</label></td>
</tr>
<tr>
<td>Descrizione:</td>
<td><label>
<textarea name="Descrizione" id="Descrizione" cols="45" rows="5"><%=Rs("Descrizione")%></textarea>
</label></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td colspan="2" align="center"><INPUT NAME="Enter" TYPE="Submit" value="Invia"></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td colspan="2" align="center">Torna alla gestione</td>
</tr>
</table>
</FORM>