I have written a small Accounts Payable system to learn new technologies. It is written in html and php5. It has a login page, a vendor search page, and a voucher entry page. On the vendor search page, I type in a vendor name, click the Search button and a list of vendors matching my search criteria is displayed. Please click this link to see an example:
http://rs90tl.rapidshare.com/files/55688260/Vendor-Browse.pngNote: all of the data is bogus. I downloaded company names from Commerce Department, street names from Vancover Canada, and then randomally added cities. addresses and zip codes. It's all fiction.
Suppose an Accounts Payable Clerk does a vendor lookup that will select 100 vendors. If I display 20 rows per page, that will require 5 pages. I would like to add "Next" and "Back" buttons to the page. The Next button would go to the database and get the next 20 vendors. The "Bac" button would redisplay the previous 20 vendors.
Some thoughts while writing the question:
1. I can use the browser "Back" button if the clerk wants to go back a page.
2. I can click the "Next" button to display the next group of 20 vendors. This would be an application based button.
3. This seems awkward since the user would have to use a browser button and an application button. Yuck!
How do I implement the "Back" button without having to go back to the database and reselect the previous 20 vendors?
Can this be done by programmatically caching the pages locally after they are displayed in the browser? The "Back" button would access the saved pages? Can this be done?
I'm open for better ideas. Please feel free to suggest them!!!
Thanks much,
Cheers!
Is there a PHP category?
Start Free Trial