Si dice che chi fa da se fa per tre...
Speriamo......
dopo che sono impazzito mi sono messo di impegno ed ho cercato di risolvere il mio problema da solo rifacendo tutto dall'inizio......
adesso mi da un solo piccolo problema: ( PENSO PICCOLO)
codice:Microsoft VBScript runtime error '800a01f4' Variable is undefined: 'name' /public/add_process.asp, line 15
ecco il codice:
add.asp
codice:<html> <head> <title> DataBase di immagini </title></head><body> <form method="post" action="add_process.asp" enctype="multipart/form-data"> <tr> <td colspan=2> Nome <input type="text" name="name" value="nome" size="20"> </p> Cognome <input name="cognome" type="text" id="cognome" value="cognome" size="20"> </p> Inserisci immagine <input type="file" name="path" size="20"> </p> <input type="submit" value="Salva"> <input name="submit" type="reset" value="Cancella"> </p></td> </tr> </form> </table> </body> </html>
add_process.asp
codice:<% option explicit %> <% dim cn, sql set cn = Server.CreateObject("ADODB.Connection") cn.connectionstring = "Provider=Microsoft.Jet.OLEDB.4.0;"&_ "Persist Security Info=False;"&_ "Data Source="& Server.MapPath("/mdb-database/db_utenti.mdb") cn.open() ' rileva nome cognome e percorso dell'immagine dim nome, cognome, path name = replace(request.form("nome"), "'", "''") cognome = replace(request.form("cognome"), "'", "''") path = replace(request.form("path"), "'", "''") ' effettua l'inserimento nel database sql = "INSERT INTO schede(cognome, nome, image_path) VALUES( '"&cognome&"','"&name&"', '"&path&"')" cn.execute(sql) ' libera le risorse cn.close() set cn = nothing %>
IN ROSSO LA RIGA INCRIMINATA

Rispondi quotando