AJAX / PHP - How to get posted data to load into a modal on the same page

前端 未结 1 464
北荒
北荒 2020-12-04 03:37

I\'m trying to make a Support ticket system. https://gyazo.com/f87fde8cfacf2165a373f409954cf653 .

For when a checkbox is selected, it selects the users ID (working).

相关标签:
1条回答
  • 2020-12-04 04:10

    You are using <button> inside your form. It can work with javascript but with only php, it will not work with POST request.
    You should change your button tag to input tag.

    <input type="submit" name="bulk_delete_submit">
    
    <input type="submit" name="add_reply_submit">
    

    Its style may be change by adding classes which you have added in your button tags.

    If not then you can change the design of your classes like this.

    <style>
    input[type="submit"]
    {
     color:black;
     font-size: 10px;
     padding: 10px;
     }//This style is just an example to show you how to that how to change style of input type submit
    </style>
    

    Hope it will help you.

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