Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form Ojectives

Status
Not open for further replies.

emissions

Technical User
Mar 17, 2002
68
GB
hi,

I'm currently working on a intranet based application, that uses a number of forms to create, edit, and post information to a database. On one of the forms, I'm looking for the form to do two objectives, i.e. firstly update the information, and create a .txt file but only with a single submit button.

Can this be do ????

Thanks in advanced
 
You can do this fairly easily. On the form handler page, you can add code to use the file system object to wirte a text file or you can server.transfer to a page to do the same thing...

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

fart.gif
 
If it is a Web form the action="blah.asp" tells the button what to do. In this case it tells the server to run blah.asp. In the blah.asp code you can use what mwolf stated above.

Set variable using the Request object. Use those variables to insert into the database and then use the FSO library to insert the variables into a text file on the server itself. Or use the server.transfer as mwolf stated above.

You just have to code the blah.asp page to do the work but once you have the data entered in the form saved to variables this is really easy.

I use the File System Object for something very similar and it is very easy to use and code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top