Heim  >  Artikel  >  Backend-Entwicklung  >  php-我想使用这个表单提交数据到数据库,如何配置ajax参数,我租的WEB空间是PHP的

php-我想使用这个表单提交数据到数据库,如何配置ajax参数,我租的WEB空间是PHP的

WBOY
WBOYOriginal
2016-06-02 11:31:561353Durchsuche

ajaxphp表单数据库

我想使用这个表单提交数据到数据库,如何配置ajax和PHP相关参数,我租的WEB空间是PHP的,我要实现的目的是收集报名信息,数据库能查询即可。当点击页面提交的时候,会弹出信息:您已经报名成功!稍后会有助教与您联系“我好久都没有接触层序了,好久都没有上来了,这里因页面需要现改模板网页,却不知道如何配置。没有分了,没办法给分,对不起!拜托懂得朋友帮忙指点指点。非常感谢

<code> <td align="center"><form action="" method="post" name="forma" id="forma" onsubmit="return checkform();">                            <input type="hidden" name="action" value="save">              <table width="431">                <tbody>                  <tr>                    <td width="91" height="20" align="right"><font color="#000000"><font color="#ff0000">*</font>联系人:</font></td>                    <td width="328" height="44"><input class="text" id="linkman" size="28" name="linkman"></td>                  </tr>                  <tr>                    <td align="right" height="18"><font color="#000000"><font color="#ff0000">*</font>手机:</font></td>                    <td height="44"><input class="text" id="phone" size="28" name="phone"></td>                  </tr>                  <tr>                    <td height="42" colspan="2" align="center"><input class="btn" type="submit" value=" 点 击 报 名 " name="Submit"></td>                  </tr>                </tbody>              </table>          </form></td></code>
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn