Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   JavaScript and Client-Side Browser Scripting (http://www.programmingforums.org/forum23.html)
-   -   How do you cache information taken from a form? (http://www.programmingforums.org/showthread.php?t=12591)

Haseloff Feb 16th, 2007 8:50 PM

How do you cache information taken from a form?
 
I was wondering how you cache information from a form so that at the end of the day I can run one script to populate the database. This is so the database is disconnected from the web script but also so it only populates once a day instead of hundreds of separate times.

I'm just looking for a starting point.

THanks in advance

DaWei Feb 16th, 2007 11:03 PM

Save it in a file? I don't see that you save anything: hundreds of file updates, one database update. Surely you're not thinking client side, are you (this being in the Javascript forum)?

Arevos Feb 17th, 2007 6:18 AM

I can't see it having much performance benefit, as DaWei says, nor any security benefit. The only reason you'd do something like this is out of necessity, for instance, if your web host doesn't provide any databases that you can use directly.

But yes, the only other way to do it is to populate a file of some kind. Perhaps a file that has some SQL in it so you can run it directly against your database.


All times are GMT -5. The time now is 3:58 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC