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/process/strip_tags/strip_tags.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/process/strip_tags/strip_tags.php on line 20
目次 |
---|
・HTMLタグ除去 ・サンプルコード ・サンプル |
(php部) <?php // 「送信」ボタンが押された時 if (isset($_POST[btnExec])) { print "全てのタグを除去した場合 : "; print strip_tags($_POST[memo]); print "<B>タグ以外を除去した場合 : "; print strip_tags($_POST[memo],"<b>"); print "<U>タグ以外を除去した場合 : "; print strip_tags($_POST[memo],"<u>"); } ?> (html部) <form method="post"> <input type="text" name="memo" size="50"> <input type="submit" name="btnExec" value="送信"> </form>