search

Home  >  Q&A  >  body text

PHP怎么使用AJAX返回登录成功信息!

就是说,当我点击提交表单的按钮时,用ajax来发送请求,然后后台怎么返回登录成功或者登录失败的信息给前台页面去展示,整个过程是无刷新的!!求各位大神给点思路!!!

高洛峰高洛峰3063 days ago1256

reply all(3)I'll reply

  • 潇寒

    潇寒2018-11-26 14:31:32

    https://guanchao.site/index.php/index/article/articledetail/artid/87.htmlThis article has a detailed description

    reply
    0
  • 初见xyz

    初见xyz2018-08-06 21:56:17

    The same question

    reply
    0
  • 三叔

    三叔2016-10-22 09:11:17

    直接往response里写就行,ajax接受数据之后在回调函数里修改页面。怎么写要和前端统一格式,一般是往response里写个json数据

    reply
    0
  • Cancelreply