Solved

Read all variables from an html file?

Posted on 1998-11-07
2
132 Views
Last Modified: 2010-04-30
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
0
Comment
Question by:samantha2
2 Comments
 

Accepted Solution

by:
decypher earned 200 total points
ID: 1443805
Can you be more specific in what you are doing.  When data is passed to a CGI, the CGI receives a Variable name and associated value, i.e. (Name, "John Smith").. However you are talking about reading directly from an HTML file.  (i.e. using string manipulation to strip out the values from the file itself after it has been processed).  Which one are you doing?
I can be reached at cmiller@norami.com   be glad to help ya out.
 
0
 

Expert Comment

by:idcvbteam
ID: 1443806

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

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now