douhan9748 2010-11-12 15:53
浏览 69

使用AJAX提交表单

I would like to submit a very simple form with an XMLHttpRequest. (I don't want to bother with jQuery). All this form does is insert a full name, a username, and a password into our db. I would like for the row to be inserted into the db without refreshing the page, and have the php file send a message back on whether it inserted the row or not. I have experience with creating a live search with AJAX, but have limited experience with submitting forms.

Code samples of an ajax call, along with a sample form would be greatly appreciated.

  • 写回答

1条回答 默认 最新

  • dongyao8698 2010-11-12 15:56
    关注

    There seems to be a good example of this here: http://www.captain.at/howto-ajax-form-post-get.php

    评论

报告相同问题?

悬赏问题

  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大