Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Read all variables from an html file?

Posted on 1998-11-07
2
Medium Priority
?
148 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 800 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…

926 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