Warning: include_once(/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/top_msg.php): failed to open stream: No such file or directory in /home/users/2/moriya-h5/web/confrage/php/confirmation/urldecode/urldecode.php on line 20
Warning: include_once(): Failed opening '/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/top_msg.php' for inclusion (include_path='.:/usr/local/php/7.4/lib/php') in /home/users/2/moriya-h5/web/confrage/php/confirmation/urldecode/urldecode.php on line 20
目次 |
---|
・URLデコード ・サンプルコード ・サンプル |
(php部) <?php print "受け取ったクエリ文字列をそのまま表示。↓"; // 「送信」ボタンが押された時 if (isset($_GET[btnExec])) { print "$_SERVER[QUERY_STRING]"; } print "クエリ文字列を元に戻して表示。↓"; // 「送信」ボタンが押された時 if (isset($_GET[btnExec])) { $decode = urldecode($_SERVER[QUERY_STRING]); print "$decode"; } ?> (html部) <form method="post"> <input type="text" name="memo" size="50"> <input type="submit" name="btnExec" value="送信"> </form>