Accessing anchors from PHP script
Sorry, this is a bit long-winded.
I maintain a database with a .PHP program which generates web pages. The program is essentially a switch structure, which calls functions as required by the user.
For example, the initial page allows the user to select a data record, and what they want to do to it (edit, delete etc), and press a "submit" button. This invokes the controlling PHP again which runs through the switch until it finds the matching section, and fires off the functions needed to create the next page.
An important part of several of the pages is a list that appears in a scrollable text box. I would like to be able to pre-select which record appears at the top of the box.
I can easily add anchor tags to the items in the list. The problem is accessing them when calling the page: with HTML you just add #name on the end of the URL, but here I don't have a URL.
Is there a convention for doing this?
Thanks,
Andrew.
|