Read all variables from an html file?
Posted on 1998-11-07
Hello! I am working on my first cgi program in Visual Basic 4 and have done pretty good so far with making it read and write the data I want, but I am having some difficulty simplifying the whole process and reading the variables from the html file.
Currently, I harcode each variable in the program, and then use it in the html file:
fName = GetCgiValue("Name")
fAddress = GetCgiValue("Address")
This works great, but how would I read all of the variables fromm the .html file, declare them in my program, then get the cgivalue, then output them to whatever without having to harcode the variables everytime I want to use the program with a different form? Rewriting it everytime is getting to be a pain especially when I have 20 variables...
For example...I want to make an html form that uses the variables:
or from a different form:
BUT, use the same executable to read the data.
Any help or examples would be greatly appreciated.