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/urlencode/urlencode.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/urlencode/urlencode.php on line 20
目次 |
---|
・URLエンコード ・サンプルコード ・サンプル |
(php部) <?php if (isset($_GET[inputdata])) { $html = $_GET[inputdata] . "<BR>"; } else{ $prm = "クリックしました。"; $html = "<A href='" . $_SERVER[PHP_SELF] . "?inputdata=" . urlencode($prm) . "'>" . "ここをクリックしてください!</A>"; } ?> (html部) <?$html?>