Jump to content

Creating a dynamic form from a CSV file


Art_peabody

Recommended Posts

Firstly, Hi I'm new to this forum, but I'm making the slow transition from MS Frontpage interface use to build websites to html programming and the use of PHP. I'm currently using Frontpage 2002, I am considering upgrading, but there's lots of info on what package to use so I'm not asking any questions about that.

 

 

The question:

 

I have a CSV file, (with a great name of 'test.csv') I have 120 rows of

items, 3 columns.

 

What I want to do is create a form where the first column of the CSV file is used to populate a dropdown box, then I would like another 2 boxes showing the values in column 2 and 3 respectively of the CSV file, depending on which item on the csv file the user of the web page chooses.

 

Example of how the CSV looks:

 

Title1, Title2, Title 3

Column1firstinfo,Column2firstinfo,Column3firstinfo

Column1secondinfo,Column2secondinfo,Column3secondinfo

 

Also note, the first row is all text, and only the first column is text. The second column is a number, and the third is a percentage (eg '0.7%')

 

Is this something that's easy to do? If so any suggestions or places I can look for the solution?

 

Many thanks

 

Art

Link to comment
https://forums.phpfreaks.com/topic/67071-creating-a-dynamic-form-from-a-csv-file/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.