September 13th, 2001, 01:52 AM
Problem with ASP :(
I don't know if I've come to the right place? But i would be greatful if anyone could help me!
I wan't to write some information from forms to file. and have managed to do that, but when I fill out the form once again, the new information over writes the old information! Is there a way to save the info?
This is the file eith the forms:
<form method="post" action="pg.asp">
First Name: <input type="text" name="fname"><br>
Last Name: <input type="text" name="lname"><br>
<input type="radio" name="jname" value="M">MALE<br>
<input type="submit" value="Send">
On submit ti will open the page pg.asp
Thanks for filling out the form!
set f=fs.OpenTextFile("C:/Inetpub/wwwroot/pd/exempel/test.txt", 2)
Is there a way to save the information (all of it) without writing over the old one!
September 21st, 2001, 01:54 AM
What mode are you opening the file in? If you are opening it in the write mode then it will overwrite it but if you open it in the append mode it will add it to the end of the file.
I hope this helps.
thats why i'm easy.....easy like sunday morning!
September 23rd, 2001, 08:31 AM
I made a database to save the info in
But now I know how to save info in a file too!