I am not a PHP programmer, but I have some PHP code running on my website. I've run into a roadblock with my website developers skillset and mine.
I have some website files that are loaded in a specific folder structure and naming convention:
They are similar to this:
[year]/[event]/[type-filename]
Where:
year = 2007,2008, or 2009
event = 1,2,3,4,5,6,7,8,9,10,11,12
type = M, A, Y
filename=[type]-P2.TXT, [type]-OV.TXT, [type]-LP.TXT
So a sample filename/paths would be:
2009/1/M-P2.TXT
2008/4/A-OV.TXT
I need for my website visitor to choose from 4 drop downs and click a "view" button, then the proper file be displayed. The 4 dropdowns would correspond to the 4 descriptions I listed above. I want the users selection list to be more descriptive for some of the selecctions items. OFr example instead of a dropdown with the numbers 1-12, a lsit of associated names woudl be better. For example the drp down might contain 12 city names, in a specific order. If the visitor chooses the second city in the list, the "2" would be supplied to the link building script/code in lieu of the city name. i.e.:
Nashville, 1
Atlanta, 2
KansasCity, 3
etc.
Similarly for the other options (except year) it woudl be preferable to have a similar array of "selection items" and "path name components". Instead of M, A, Y, I can have:
"Main Report", "M"
"Second Report", "A"
"Misc Items", Y
Can be done? Simple and less overhead the better. Must be secure. Prefer client side, minimal or no server side. I run Apache on Centos Linux. No SQL
I am not married to the structure above and can change it if it makes this possible/easier. Just let me know.
Thanks!
Scott