Here is what I've got. Using MySQL and PHP (and of course HTML and CSS) I have designed a nice website of the pets for adoption at our local SPCA. You search for a cat or dog using a couple of allowable criteria, then it pulls up a record with a picture, info, etc of the pet. I also added a 'next' and 'previous' button on each record so one could go thru and look at all the pets. It all looks and works good, except that when 'next' and 'previous' are clicked, the .php recalls itself, adds or increments the session variables, and then ~~flash/flicker~~ the new record is displayed. I'm wanting to know how to do this without having to recall the current .php code and always get that ~~flash/flicker~~ as the screen redraws itself. Checking around a bit, JavaScript talks about doing these types of things by manipulating the DOM (Document Object Module). The question is if I study and learn how to do this in JavaScript, I don't think I can necessarily access the variables, etc code I have which is PHP. PHP says it supports the DOM but doesn't seem to explain how to do this (that I can find). Hope I have explained this OK. Can anyone offer an idea of how to approach this?
Thanks.