PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
So I have a blog thing where posts are private by default... I want users to be able to scroll through their entries and just click a button for it to instantly become puclic and update on the page. How can I make this happen without going to a different page or relading? (facebook does this all the time if you need an example. the notifications and invitations on there can be deleted without leaving the page)
Ideally, you would click this button:
and it would toggle to this button:
each post is in a mySQL table that has a column for a variable "shared" that is either true or false
suthie wrote:My host does not support AJAX, and I do not have the money to upgrade at the moment. Is there a way to do this or something close to this with php?
Ajax is neither a language nor a library. It is simply using one particular built-in object in Javascript and handling the data returned by (for example) a PHP script on the server. If you already know Javascript, it's pretty easy. And there's nothing to support or install!