例文コード
<?php
$staff_name = isset($_POST['name']) ? $_POST['name'] : '';
$staff_pass = isset($_POST['pass']) ? $_POST['pass'] : '';
$staff_pass2 = isset($_POST['pass2']) ? $_POST['pass2'] : '';
$staff_name = htmlspecialchars($staff_name,ENT_QUOTES,'UTF-8');
$staff_pass = htmlspecialchars($staff_pass,ENT_QUOTES,'UTF-8');
$staff_pass2 = htmlspecialchars($staff_pass2,ENT_QUOTES,'UTF-8');
?>
文法
$string = htmlspecialchars($string,ENT_QUOTES,'UTF-8');
コメントを残す