I am not positive what you are asking here, but if I understand correctly, when someone is on 'form 2' you want to show the second record, 'form 3' the third, etc...
I'm not sure how practical it is (since I do not know how many records the file holds) but you could read the file into an array and show the appropriate record by the indicies of the array. If you have fixed length records you could use seek(), etc... to read a certain amount of bytes from a certain place in the file to only read in the record you want. I find this hard to answer without knowing the type of records, the number of records, and if these records are static (as well as if there will often be new records). Why not use a database (out of curiosity)?
Cheers,
KM
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.