dpj83664 2017-04-06 19:09
浏览 47
已采纳

单击页面上的按钮以使用PHP增加另一页中的计数器?

so as the title says, I've a button on my main page which should send the amount of times clicked to another page.

I know how to do this via JS, but not in PHP. PHP is also not live, so I'd need to refresh the webpage in order to see the effect, I've been reading about it and I might try and mess around with AJAX to refresh a certain element of my webpage.

Is it possible to do this?

  • 写回答

1条回答 默认 最新

  • doupu0619 2017-04-06 19:17
    关注

    I think you should save it somewhere because PHP is handled server side. So either a cookie/session or a database.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?