I have a structure:
- [catalogues]
- [catalogue-name-1]
- [data_html]
- name-1.html - table of posted values from another form
- name-2.html - table of posted values from another form
- name-3.html - table of posted values from another form
- ...
- name-n.html - table of posted values from another form
- catalogue-name-1.html
- [catalogue-name-2]
- catalogue-name-2.html
- [catalogue-name-3]
- catalogue-name-3.html
- [data_html]
index.php
How shall I write the function in catalogue-name-?.html to have merged the content of all data_html-tables in one html-table in catalogue-name-?.html?
How shall I write the index.php to have listed all catalogue-name-?.html files as a list of links?
- <a href="catalogue-name-1.html">name-1</a>
- <a href="catalogue-name-2.html">name-2</a>
- <a href="catalogue-name-3.html">name-3</a>
- ...
- <a href="catalogue-name-n.html">name-n</a>
Thank you for the hints. There are 3 PHP files involved: index.php - there is an entry form posting values into the work/data.php file, then values manipulated in it are saved in new HTML files in respective data_html folders to be then shown by work/preview.php. In data.php, there is about this code: