Solved

Read all variables from an html file?

Posted on 1998-11-07
2
144 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month4 days, 23 hours left to enroll

635 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