提交表单后没有空表单字段 [英] no empty form fields after submitting form

查看:99
本文介绍了提交表单后没有空表单字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,这是一个愚蠢的问题,但是......


page_A.php是一个带有表单的页面。

用户在四个字段中插入文本,然后他点击一个提交按钮。

数据转到page_B.php:

这个页面控制提交的数据,然后回显一条消息。

如果提交的数据存在问题,则消息显示:

您的数据出现问题。点击此处返回

表格 (page_A.php)。

当用户回来时,他发现这些字段是白色的。


如何向他展示他提交的内容?


谢谢!

Hello, a stupid question but...

page_A.php is a page with a form.
The user inserts text in four fields, then he clicks a submit button.
The data goes to page_B.php:
this page controls the data submitted, then echoes a message.
If there were problems with the submitted data the message says:
"a problem occurred with your data. Click here to come back to the
form" (page_A.php).
When the user comes back, he finds the fields white.

How can I do to show him what he submitted?

Thanks!

推荐答案

.. oO(pe ******* ******@gmail.com)
..oO(pe*************@gmail.com)

> page_A.php是一个带有表单的页面。
用户在四个字段中插入文本然后他点击一个提交按钮。
数据转到page_B.php:
这个页面控制提交的数据,然后回显一条消息。
如果提交的数据有问题,那么消息说:
您的数据出现问题。点击此处返回
表格 (page_A.php)。
当用户回来时,他发现这些字段是白色的。
>page_A.php is a page with a form.
The user inserts text in four fields, then he clicks a submit button.
The data goes to page_B.php:
this page controls the data submitted, then echoes a message.
If there were problems with the submitted data the message says:
"a problem occurred with your data. Click here to come back to the
form" (page_A.php).
When the user comes back, he finds the fields white.



你不需要两页。让page_A显示并处理表格

处理。如果出现错误,请将表单提交到同一页面,检查值并再次显示表单




保存表单数据从一个页面移动到另一个页面你需要

必须将值存储在一个会话中。


Micha

You don''t need two pages. Let page_A show and handle the form
processing. Submit the form to the same page, check the values and show
the form again if there''s an error.

To keep the form data while moving from one page to another you would
have to store the values in a session.

Micha


9月14日下午6:39,Michael Fesser< neti ... @ gmx.dewrote:
On Sep 14, 6:39 pm, Michael Fesser <neti...@gmx.dewrote:

在移动表单数据的同时保留表单数据页面到另一个你将

必须在会话中存储值。


Micha
To keep the form data while moving from one page to another you would
have to store the values in a session.

Micha



好​​的,我会用会话,谢谢!



Ok, I''ll use sessions, thanks!


pe ************* @ gmail.com 写道:

您好,这是一个愚蠢的问题,但是...


page_A.php是一个带有表单的页面。

用户在四个字段中插入文本,然后他点击了一个提交按钮。

数据转到pa ge_B.php:

此页面控制提交的数据,然后回显消息。

如果提交的数据出现问题,则消息显示:

您的数据出现问题。点击此处返回

表格 (page_A.php)。

当用户回来时,他发现这些字段是白色的。


如何向他展示他提交的内容?


谢谢!

Hello, a stupid question but...

page_A.php is a page with a form.
The user inserts text in four fields, then he clicks a submit button.
The data goes to page_B.php:
this page controls the data submitted, then echoes a message.
If there were problems with the submitted data the message says:
"a problem occurred with your data. Click here to come back to the
form" (page_A.php).
When the user comes back, he finds the fields white.

How can I do to show him what he submitted?

Thanks!



在页面B上创建一个表单。复制所有

Create a form on page B. Copy all of the


这篇关于提交表单后没有空表单字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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