so fare il tutto a pezzi...
- salvare dati su un db
- upload di immagini
ma non riesco a fare il tutto insieme in un unica pagina....
guarda un po......
questa la form:
codice:
<form name="frmEnquiry" method="post" action="add-process.asp" onSubmit="return CheckForm();">
<div align="center">
<center>
<table border="0" style="border-collapse: collapse" bordercolor="#111111" width="386" id="AutoNumber1" height="26" cellpadding="3" cellspacing="3">
<tr>
<td width="838" height="20">Cognome
</td>
<td width="579" height="20"><input maxlength="30" name="cognome" size="23">
</td>
<td width="401" height="20">
</td>
<td width="81" height="20">Nome
</td>
<td width="579" height="20"><input maxlength="30" name="nome" size="23">
</td>
</tr>
</table>
</center>
</div>
<p align="center">
<input type="submit" name="Submit" value=" Invia " style="border-style: solid; border-width: 1">
<input type="reset" name="Reset" value="Cancella" style="border-style: solid; border-width: 1"></form>
</body>
</html>
questo per fare salvare i dati nel db:
codice:
<%
cognome = (UCase(request.form("cognome")))
nome = (UCase(request.form("nome")))
.......
Dim rs
Set Con = Server.CreateObject("ADODB.Connection")
Con.CommandTimeout = 40
Con.ConnectionTimeout = 40
Con.CursorLocation = 3
Con.ConnectionString="server=xx.xx.xx.x;db=nomedb;driver=MySQL;uid=user;pwd=pass"
Con.Open
SQL = "INSERT INTO scheda (cognome,nome, .......
Con.execute(SQL)
Con.close
%>
per l'upload del file
http://forum.html.it/forum/showthread.php?s=&threadid=744649
COME METTO IL TUTTO IN UN'UNICA FORM??????