What programming language are you using to generate the forms?
Main Topics
Browse All TopicsI have a database which generates a CSV file which I enter into a web page. There are (39) data fields to enter. How do I import the data from the CSV file and populate the desired fields on a web page?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I am collecting the data with a VB6 program and storing in an Access database. My plan was to export (to a CSV file) the required data to be entered into the web site and then find a way to populate the web site from the CSV file. I can write the necessary VB6 code but don't know how to populate the web site fields with the data.
I mean on the server, "What programming language are you using to generate the forms?" - is it a PHP machine? Cold Fusion? ASP.net? etc. The forms are presented in HTML, but if you have a programming language available it may be easy to automate the production of the forms with the fields prepopulated.
Since it's a secure site, I cannot give you the user name and password to the site. I have attached screen-shots of the web pages if that helps. The data from page 1 is 'Saved' with a button control and then data is also entered on the 2nd page. Page 1 is more challenging because it uses (2) buttons to open other forms to enter data. Note: all data is example data only. I hope this helps.
Thanks, the pictures are helpful in trying to understand the REAL intent. It appears you are trying to enter data into the FGIS-Online program of GIPSA, a part of the US Department of Agriculture. But without the URLs so we can see the source of the HTML forms, there is nothing else we can do for you. If you want to make up a simple test form and an associated CSV we can work with the hypothetical test case, but please read on...
You need to hire a developer to do this work; it requires a careful one-for-one mapping of the numerous fields from the CSV into the POST string to send the data to the GIPSA online application. That is not technically difficult, just time consuming. It would not be very costly - probably little more than a few days effort. You will need to know the expected values for each of the fields - get that from the Government in writing before you start paying the developer, or you will have a payroll that is doing nothing while you wait for a response from USDA. You will probably also want a test case engine or a "sandbox" to test your application development before you actually put data into the government data base.
However you will wind up with a "brittle" application - one that could break at any moment when the government changes the form. Since this is part of a data-collection program that was started last year and is still in a state of "flux" I would advise against depending on an automated posting algorithm for your business processes.
You should check the terms of use carefully, since it appears that the Government does not want you to use automated data entry, or else they would have provided you with an API to receive XML (or something like it).
Best of luck with it, ~Ray
Business Accounts
Answer for Membership
by: tovvenkiPosted on 2009-08-14 at 04:11:28ID: 25096779
Hi,
icrosoft Text Driver (*.txt; *.csv)};Dbq=" + your CSVFolder);
why are you generating csv files from the database and passing it to the web page. You can access the database using ado.net and populate the fields
if this is third party database or if it is the requirement You can use Ado.Net to read the csv file and then populate the data to the fields.
DataTable dt = new DataTable();
OdbcConnection cn = new OdbcConnection(@"Driver={M
OdbcCommand cmd = new OdbcCommand();
cmd = new OdbcCommand("Select * from [your.csv]", cn);
cmd.CommandType = CommandType.Text;
OdbcDataAdapter adp = new OdbcDataAdapter();
adp.SelectCommand = cmd;
cn.Open();
adp.Fill (dt);
now from the data table you can get the data and populate your fields
Thanks and regards,
Venki