cool.

Originally Posted by
keyboard1333
Have you thought about storing the history in a cookie instead of a session (so it shows up if they close->re-open the browser).
I'm a little surprised you (John) didn't do it that way. I'd use localStorage (there are several JS polyfills for browsers that don't support web storage yet). But I understand, we're focusing on the PHP side.
code is good. biggest thing I'd change is how you're storing the quotes -
Code:
array( quote,citation,quote,citation )
is pretty fragile. For a flat file, I'd use JSON, and put each quote/citation pair in their own array.
Code:
[
[ quote,citation ]
,[ quote,citation ]
]
if you'd like to hear more, let me know. I'll read it all the way through tomorrow.
Bookmarks