Can you explain please, is that a comment on the suggested tutorial, or is there something I should be aware of, thanks.
This isn’t the recommended way to check for a post submission.
You are already doing it correctly here.
Assigning a variable to another variable without processing or changing anything would be considered a pointless waste of code.
Doing something like:-
$word = trim($_POST["word"]);
or
$word = myValidationFunction($_POST["word"]);
Would make more sense, otherwise just leave it as $_POST["word"]
if you are not going to change anything.
1 Like
Thanks for clarifying.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.