Replace HTML on event?
Hello, I was wondering if it was possible to make a script which would allow me to click a button, then a php script would write some HTMK code using the echo function.
This HTML would be a div tag containing some text which will be pulled from a database. At the bottom of this div there would be a link which will make this div invisible so it is hidden/removed from the code.
This will allow a different button to be clicked, this would then load some new text from the database into the same div.
I understand that by using a php script which will write the div tag again using the echo function it would just write it again under the code written before. I do nopt want this as if there are hundred of buttons, then the code of the page will become large and may slow down the users computer.
Sorry for my bad gramma and punctuation in the first paragraph.