$ _SESSION $ _POST [英] $_SESSION $_POST
本文介绍了$ _SESSION $ _POST的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我有一个基本的用户注册表,action =" POST"。在我的PHP代码中(在
同一页面上,我将$ _POST内容存储到$ _SESSION如果用户
将一个字段搞砸了,所以他们没有重新输入他们所有的信息。但是我想,如果我可以使用
$ _SESSION数组,我为什么要使用$ _POST呢?或者甚至可能反之亦然?或者我是这样做的所有
错误的方式?
欢呼
dave
解决方案
_POST东西到
_SESSION如果用户
搞砸了一个字段,所以他们不会我必须重新输入他们所有的信息。但是,我想,我为什么要使用
_POST,如果我可以只是我们的
hi
i''ve got a basic user register form, action="POST". in my php code (on
the same page, i store the $_POST stuff to a $_SESSION if the user
screws a field up so they don''t have to reenter all their info. But
i''m thinking, why should i use $_POST at all if i can just us the
$_SESSION array? or maybe even vice versa? or am i doing this all the
wrong way?
cheers
dave
解决方案
_POST stuff to a
_SESSION if the user
screws a field up so they don''t have to reenter all their info. But
i''m thinking, why should i use
_POST at all if i can just us the
这篇关于$ _SESSION $ _POST的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文