Il codice della pagina principale con il form è questo:
codice:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento senza titolo</title>
</head>
<body>
Creazione nuovo utente FTP: </p>
<form id="form1" name="form1" method="post" action="\ICT\Crea.asp">
<table width="20%" border="1">
<tr>
<td>Username:</td>
<td><label>
<input type="text" name="username" />
</label>
</td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name="password" /></td>
</tr>
<tr>
<td height="23"></td>
<td><label>
<input type="submit" name="Submit" value="Invia" />
</label></td>
</tr>
</table>
</form>
</body>
</html>
Mentre per la pagina Crea.asp è molto banalmente per ora:
codice:
<%
Dim invia
invia = Request.Form("Submit")
Dim testo, testo1
testo = Request.Form("Username")
testo1= Request.Form ("Password")
Response.Write(testo)%>
<%
response.Write(testo1)
%>
Questo mi scrive in una pagina web username e password che ho inserito nel form... io ho però bisogno di capire da qui come fare per passarli ad un file .txt che verrà poi salvato.
Grazie per l'aiuto!
Ciao