I'm looking for a reference as I have seen it in the past, but as you show, INPUT_POST
does not use the $_POST
superglobal array. At least not the at the state that you have access to. Since you are adding to $_POST
this won't work, you would need to use:
<?php echo filter_var($_POST['user'], FILTER_SANITIZE_SPECIAL_CHARS); ?>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…