Link to home
Start Free TrialLog in
Avatar of samantha2
samantha2

asked on

Read all variables from an html file?

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:

HTML:
name=Name
name=Address

VB:
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:

name=Account_Number
name=Name

or from a different form:
name=City
name=State

BUT, use the same executable to read the data.

Any help or examples would be greatly appreciated.

Thanks!

Samantha
ASKER CERTIFIED SOLUTION
Avatar of decypher
decypher
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of idcvbteam
idcvbteam


You might want to email me a copy too,
I have worked on a simular application last year.
idcvbteam@hotmail.com