How to use jQuery AJAX $.post to store PHP $_SESSION variables?

前端 未结 1 1510
旧巷少年郎
旧巷少年郎 2021-01-02 15:03

Help!

I\'m having trouble wrestling AJAX to work for me. I have a paginated gallery with checkboxes beneath each image and I need to store the checkbox values in ses

相关标签:
1条回答
  • 2021-01-02 15:25

    You need to call session_start() in your form-data-holder.php file.

    Every time you make the ajax call, you are requesting a new / fresh page from the server that isn't aware of any of the variables set in the original page.

    0 讨论(0)
提交回复
热议问题