2012-06-28から1日間の記事一覧

エスケープ処理

PHP

htmlspecialchars()を使う。 $title = htmlspecialchars($_data['title'], ENT_QUOTES, 'UTF-8');

headerでredirect

PHP

headerでredirectする。 $root = ''main; $index_url = 'http://'.$_SERVER['SERVER_NAME'].$root; header('Location:'.$index_url);