如何保持表单值后门柱 [英] How to keep form values after post

查看:121
本文介绍了如何保持表单值后门柱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找到让表单值后后最简单的方法。我真的想有不断借鉴阿贾克斯右第二的一种形式,再加上我不知道有多难是实现Ajax到我现有的谷歌地图页面。所以,我试图找到一种方式来挽留后,提交已被推迟两个日期字段的值

I am trying to find what the easiest way to keep form values after post. I am really trying to have to keep from learning ajax right this second for the one form, Plus I am not sure how hard it would be to implement ajax into my already existing google map page. So I am trying to find a way to retain the values of two date fields after submit has been pushed

推荐答案

如果你正在寻找刚刚重新填充的是在他们公布的值的字段,然后就回送岗位价值回到现场,像这样:

If you are looking to just repopulate the fields with the values that were posted in them, then just echo the post value back into the field, like so:

<input type="text" name="myField1" value="<?php echo isset($_POST['myField1']) ? $_POST['myField1'] : '' ?>" />

这篇关于如何保持表单值后门柱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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