Stop me if I’m wrong here: you want to record lots of separate name/date pairs, write the lot to an external flat file database, then retrieve the data and split it back into separate name and date variables.
What if you …
- declared two variables:
myDate=“22092002” (I know we europeans put the date backwards just to be different)
this will give you something like jsk_22092002
- push as many variables as you like into an array
nameDateHolder = new Array()
nameDateHolder.push(combinedNamedate) as often as you need to
- Write the lot to an external txt file using php or whatever
this will convert the array to a string with each element delimited by “:” (or whatever you choose) e.g.
Call the lot back from the txt file using loadVariablesNum() with php or whatever
Split it back into an array of paired values
- Pull out one of the pairs:
- Split this back into its constituents: