AJAX + jQuery variables do not pass to PHP

后端 未结 4 921
死守一世寂寞
死守一世寂寞 2021-01-20 20:08

I am trying to do something very simple: Pass 2 text variables to a php script and insert them into a MySQL db. For some reason however I can\'t get the variables to pass (s

4条回答
  •  遇见更好的自我
    2021-01-20 21:02

    This has to work:

    
    

    and the PHP (only changed get to post)

    getMessage();
        }
    ?>
    

    Also to debug, I would suggest using firebug or chrome's build in inspect tools.

提交回复
热议问题