开发者

About passing referrer php

开发者 https://www.devze.com 2023-01-25 17:16 出处:网络
I know that this is answered but i cajnt find the ans开发者_开发问答wer... I want to pass within a hidden fieldthe value of $_SERVER[\"REQUEST_URI\"]

I know that this is answered but i cajnt find the ans开发者_开发问答wer...

I want to pass within a hidden field the value of $_SERVER["REQUEST_URI"]

I dont know how value in <input type='hidden' value=''/> should be echoed ..

It is sent through post... I tried using rawurlencode( $_SERVER["REQUEST_URI"])) but i have to do decode again... Is there any other solution ?


echo "<input type='hidden' value='" . htmlspecialchars($_SERVER["REQUEST_URI"]) . "' />";
0

精彩评论

暂无评论...
验证码 换一张
取 消