如何制作表格提交后只读 [英] how to make a form Read only after submission

查看:81
本文介绍了如何制作表格提交后只读的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个表格,在提交表格后我想将其视为只读。在我的表单中,我正在向数据库提交一些数据,并且每个表单都是根据id提交的。并且我想得到与该id相关的那个表单的只读视图。

i have a form and after the submission of the form i want to view it as readonly. in my form i am submitting some data to the database and every form is submitted on the basis of an id. and i want to get the readonly view of that form which is related to that id.

推荐答案

最简单的解决方案是当用户选择时使表单控件''Readonly'' ''验证''(查看他输入的内容)并显示它。在选择提交时,前往服务器进行实际数据提交。



在另一个页面上创建/显示需要创建一个新页面来显示数据。您还必须将数据提交到服务器以在新添加的页面上呈现它,从而导致额外的往返服务器。
The simplest solution is make form controls ''Readonly'' when user selects ''Verify'' (to see what he has entered) and display it. On selection of ''Submit'' make a trip to server for actual data submission.

Creating/displaying on another page needs a new page to be created to display the data. Also you''ve to submit the data to the server to render it on the newly added page causes extra round trip to the server.


这篇关于如何制作表格提交后只读的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆