PHP-替代HTML隐藏输入 [英] PHP - alternative to html hidden input

查看:75
本文介绍了PHP-替代HTML隐藏输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要以另一种形式重新发送以前的html形式的值,以便可以将其用作已准备的SQL语句的一部分.

I need to resend a value from a previous html form in another form so that it can be used as part of a prepared SQL statement.

但是,由于潜在的安全问题,我真的不想使用html隐藏的输入.

However, I do not really want to use html hidden input due to potential security problems.

有人知道另一种方法吗?

Anyone know of another method?

谢谢.

推荐答案

将值临时保存在隐藏的HTML输入不会造成任何安全问题,只要您在将它们放入数据库之前正确地(再次)对其进行了验证.

Hidden HTML inputs shouldn't cause any security problems though, as long as you properly validate them (again) before putting them in the database.

这篇关于PHP-替代HTML隐藏输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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