Tag: mysql表示

生日登记表格麻烦

您好我正在尝试为我的网站http://social.nssgaming.com/制作注册表格,但我在注册表格中收到错误。 而且我不知道什么是错的。 我不会在3个盒子里你可以看到日期,蛾子和年份。 register.php位于: http : //paste2.org/a31FJE5L您可以在索引文件中查看生日的一部分: Social Nssgaming function emptyElement(x){ _(x).innerHTML = “”; } function checkusername(){ var u = _(“username”).value; if(u != “”){ _(“username_check”).innerHTML = ‘Checking database… ‘; var ajax = ajaxObj(“POST”, “index.php”); ajax.onreadystatechange = function() { if(ajaxReturn(ajax) == true) { _(“username_check”).innerHTML = ajax.responseText; } } ajax.send(“usernamecheck=”+u); } } function signup(){ var fn = […]

使用PHP,jQuery以模态forms填充字段

我有一个表单,添加到数据库的链接,删除它们,并 – 很快 – 允许用户编辑详细信息。 我在这个项目上大量使用jQuery和Ajax,并希望将所有控件保留在同一页面中。 在过去,为了处理类似其他网站的详细信息(链接条目),我会将用户发送到另一个PHP页面,其中包含从MySQL数据库表填充PHP的表单字段。 如何使用jQuery UI模式表单完成此操作并为该特定条目单独调用详细信息? 这是我到目前为止的情况 – <div class="linkBox ui-corner-all" id="linkID”> Link: <a href="https://stackoverflow.com/questions/2649913/populating-fields-in-modal-form-using-php-jquery/” target=”_blank”>https://stackoverflow.com/questions/2649913/populating-fields-in-modal-form-using-php-jquery/ Delete Edit 这是我用来删除条目的jQuery- $(“.delete”).click(function() { var parent = $(this).closest(‘div’); var id = parent.attr(‘id’); $(“#delete-confirm”).dialog({ resizable: false, modal: true, title: ‘Delete Link?’, buttons: { ‘Delete’: function() { var dataString = ‘id=’+ id ; $.ajax({ type: “POST”, url: […]