Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.