Click to See Complete Forum and Search --> : Fetch html form fields & store them in to a text file in visual basic


shanuragu
09-14-2003, 10:02 AM
Hi

Is there any search function in visual basic which can search for .html/.htm files from any folder/particular folder???
Also any function in visual basic which can get html form fields like emp_no & emp_name. Later I want to store them in to a text file??

shara

rdoekes
09-14-2003, 10:35 AM
You could use the scripting.FileSystemObject to search for files in a folder. In VB, make sure you add the scripting runtime library to your project.

Then you create a filesystemobject and folder object
You collect the files in the folder, create a files object and for each loop through them (.Name property)

http://www.devguru.com/Technologies/vbscript/quickref/objects.html

As for the form fields: parse the files with OpenTextFile, and search for the string

Hope this helps,

-Rogier Doekes