发送不带表单的POST数据 [英] Sending POST data without form

查看:89
本文介绍了发送不带表单的POST数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以将字符串或另一段信息发送到另一个.php文件而不暴露该文件吗(因此不是通过GET而是通过POST符合我所知道的),而无需使用表单?

Can i send for example a string or another piece of information to another .php file without it being exposed [thus not by GET but by POST conform to what i know] without using a form?

推荐答案

如果您不希望用户看到您的数据,请使用PHP会话.

If you don't want your data to be seen by the user, use a PHP session.

发布请求中的数据仍然可以由用户访问(和操作).

Data in a post request is still accessible (and manipulable) by the user.

在PHP会话上结帐本教程.

这篇关于发送不带表单的POST数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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