PHP发布变量 [英] PHP post variables

查看:70
本文介绍了PHP发布变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您可以保存变量以将其发布到php中以在另一页上提取吗?我只知道如何检索post变量,或者这是您应该使用session的地方.我不想将我的变量保存在url的末尾并使用get.

Can you save a variable to post in php to pickup on another page? I only know how to retrieve a post variable, or is this where you should use session instead. I don't want to save my variable on the end of the url and use get.

推荐答案

在这里您可能要使用$_SESSION变量而不是$_POST.

This is where you might want to use $_SESSION variables, instead of $_POST.

请参阅: http://php.net/manual/en/reserved. variables.session.php

这篇关于PHP发布变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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