faqts : Computers : Programming : Languages : Asp : ASP/VBScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

1 of 1 people (100%) answered Yes
Recently 1 of 1 people (100%) answered Yes

Entry

How do I securely count the number of times a form has been submitted?

Mar 22nd, 2004 23:23
Jason Benson, Hunter Thompson,


If the form is being submitted to a database you could of course just 
update the database:
SQL example (access/sql):
("Update FormResultsTable Set Form_Count = Form_Count + 1")
If not you would likely use a text file or another method to keep this 
count.  To do that you would use the FileSystemObject and the 
read/write line methods.
See this link for a good introduction to the FileSystemObject in ASP/VB:
http://www.4guysfromrolla.com/webtech/faq/FileSystemObject/faq1.shtml
hth
jb



© 1999-2004 Synop Pty Ltd