Solved

Read all variables from an html file?

Posted on 1998-11-07
2
137 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

739 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