1

I would like to implement an editable "p" element which will update a corresponding table of a database after the user presses enter or is done editing the information (Similar to how the newest version of phpmyadmin works.)

I would like to avoid using javascript and use strictly php/html.

Does anyone know how can be done or could point me in the direction of a tutorial or site discussing this topic?

4

2 回答 2

0

没有 some 就不可能做你想做的事Javascript,除非你习惯使用传统的 HTML 表单并且每次更新都请求一个全新的页面。

" AJAX"是在 phpMyAdmin 中应用的技术(以及任何您看到“实时”更改的地方,而无需刷新页面。

此外,paragraph( <p/>) 元素不是可编辑的输入字段。

于 2013-07-26T13:43:33.490 回答
0

如何使用 AngularJS 并扩展以下内容以写回数据库:

http://tamaspiros.co.uk/2013/05/28/inline-editing-with-angularjs/

于 2013-07-26T13:45:31.280 回答