English 中文(简体)
SC 数据库 html文本箱
原标题:SQL database html textbox

我有html的文本箱,如果数据库中的浏览名称已经存在,我希望由PHP和jQuery核对。 例如,我用ID和NOE列表HELLO。 当用户把一些名字贴上文字箱时,我想PHP要检查这些名字是否已经存在,如果存在的话,则要打上“质量”来显示用户动态。 如何这样做?

求助热线,让我知道,是否需要更多的信息。

最佳回答
  1. Use jQuery to send an ajax request to php with the name typed in by the user.
  2. Use PHP to check if the given name exists in the database and return a result as for example JSON.
  3. Use jQuery to interpret the result and somehow show its findings to the user.
问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签