I need to read from a text file stored on the server and load a huge list of things into a form so the user can interactively select, add or remove lines from the list. I know how to modify a form if the options are hardcoded, but I can't get javascrip to read a file. Any idea how to use .cgi or php to load a file and display its lines in a form using the <select> tag? Thanx,
With perl you could do something like this: This will, ofcourse, depend on how your data is stored, I am assuming that it is in some sort of record format for this example. I have also assumed that you only have a single line of options delimited by tabs.