in reply to Item Identification in XML Files
Why are you attempting to talk yourself out of a good solution? Stores (both on-line and brick-and-mortar) use unique identifiers for their items. Things like part numbers and ISBN numbers make sure that when you order an item, the store knows exactly what you want. If you expect to have item names that are identical, how will you keep them straight, let alone your script, without a unique identifier?
However, if you insist on not having to set per-item ids, you can simply add an extra id field to each item as you convert it to html to display on your web interface. The item's location in the file(i.e. which number it is) could be the id. When you resubmit your form, you can use this number to make sure you are modifying the correct item. This assumes that only one person changes the file at a time(since adding an item could throw the count off.)
Later
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Item Identification in XML Files
by Anonymous Monk on Apr 30, 2003 at 05:51 UTC | |
by mirod (Canon) on Apr 30, 2003 at 09:05 UTC | |
by merlyn (Sage) on Apr 30, 2003 at 09:23 UTC | |
by Anonymous Monk on Apr 30, 2003 at 09:34 UTC | |
by Anonymous Monk on Apr 30, 2003 at 09:53 UTC | |
by mirod (Canon) on Apr 30, 2003 at 10:35 UTC |