Ciao ragazzi ho due problemi su un UPDATE.
il primo è che con questo codice
mi da errore di sintassi nell'update che si risolve levando il campo notecodice:strSQL = "UPDATE utenti SET anno = '"& Request.Form("anno") &"', sesso = '"& Request.Form("sesso") &"', occhi = '"& Request.Form("occhi") &"' , altezza = '"& Request.Form("altezza") &"', capelli = '"& Request.Form("capelli") &"', peso = '"& Request.Form("peso") &"', lavoro = '"& Request.Form("lavoro") &"', note = '"& Request.Form("note") &"' WHERE nickname = '"& session("nickname")& "'"
note = '"& Request.Form("note") &"'
il problema sta forse nel fatto che è tipo memo in access?
secondo problema se levo il campo note l'update funziona ma mi inserisce solo 2 valori.
anno e sesso
vi passo anche il codice della form per farvi vedere che i dati nelle request.form sono corretti
Dove sbaglio?codice:<form action="dati.asp" method="post" name="modulo" id="modulo"> <table class="testoserate" width="450" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="335">Sesso:</td> <td width="115"><label> <select name="select"> <option value="m">Maschio</option> <option value="f">Femmina</option> </select> </label></td> </tr> <tr> <td width="335">Anno di nascita:</td> <td width="115"><label> <select name="anno"> <%dim indiceanno indiceanno=1989 do while indiceanno>1900%> <option value="<%=indiceanno%>"><%=indiceanno%></option> <% indiceanno=indiceanno-1 loop%> </select> </label></td> </tr> <tr> <td width="335">Occhi</td> <td width="115"><label> <input type="text" name="occhi" class="pulsok" /> </label></td> </tr> <tr> <td width="335">Altezza:</td> <td width="115"><label> <input type="text" name="altezza" class="pulsok" /> </label></td> </tr> <tr> <td width="335">Capelli:</td> <td width="115"><label> <input type="text" name="capelli" class="pulsok" /> </label></td> </tr> <tr> <td width="335">Peso:</td> <td width="115"><label> <input type="text" name="peso" class="pulsok" /> </label></td> </tr> <tr> <td width="335">Lavoro:</td> <td width="115"><label> <input type="text" name="lavoro" class="pulsok" /> </label></td> </tr> <tr> <td width="335">Parla di te:</td> <td width="115"><label> <textarea name="note" rows="5"></textarea> </label></td> </tr> <tr> <td>dai la possibilità di essere contattato da altri utenti registrati? </td> <td><label> <input name="contactme" type="checkbox" id="contactme" value="checkbox" checked="checked" /> spuntare se sì </label></td> </tr> </table> <div align="center"> <input type="submit" name="Submit2" value="aggiorna i dati" class="submit5"/> </div> </form>

Rispondi quotando
