HTML code, form: {code ...} PHP code, verification: {code ...} for the html and php code, an empty variable named name is set, but you have to get and verify the character length entered by the user in the form. However, when verifying the length, you cannot verify the user's... HTML code, form:
PHP code, verification:
= 10) {echo "script" alert ('this doesn't seem to be a name ~! ') Script ";} else {$ name = test_input ($ _ POST [" name "]);} function test_input ($ data) {$ data = trim ($ data); $ data = stripslashes ($ data); $ data = htmlspecialchars ($ data); return $ data ;}?>
For the html and php code, an empty variable named name is set, but you have to get and verify the character length entered by the user in the form.
However, the length of the information entered by the user cannot be verified during verification. how can this problem be solved?