Question is deleted now. Screenshot below:
Undefined index PHP with _POST
I was about to answer this question: https://stackoverflow.com/questions/60871550/undefined-index-php-with-post but it was flagged as off-topic, I guess the criteria was Typo error based on this:
printHex($_POST['color']); // All lowercase color
?>
<form action="colorshex.php" method="post">
Color: <input type="text" name="Color"> <br> <!-- First uppercase Color -->
</form>
Yeah, there is a typo error there, but also a logic error, because OP is trying to access an element of a form that is not submitted on the first script execution, so fixing typo would not fix the problem.
I guess flags came from non-PHP users.
Now, my questions:
- How can we avoid to flag questions that are valid?
- How a simple and mortal user like me can ask to reopen a question?
I've just noticed why I was not satisfied on how question was flagged and closed: I've just saw another question that was duplicated and a user with more than 60k score answered instead of flagged it as duplicate.
I won't say names because that's not really important, the matter is that there is no just one way to do things here, even experts can make mistakes, not just newbies like me.
I was wrong trying to answer instead searching if the question has been answered before, but let me explain better:
The matter here is about criteria, the question was flagged because a typo, but fixing typo won't solve the issue and it was clear if you look a little deeper in the code.
I've found some similar questions but I usually wait to flag until OP says that fixing typo solved the issue, because a lot of people doesn't copy/paste their real code and they can easily make a mistake.
So, in order the OP can learn something and avoid new questions about the same issue, the best we could do is pointing him in the right direction, in this case, that was flagging the question as duplicate.
guess
means? I'm not attacking anyone, I was just thinking why that question was closed and @yivi was pretty clear on that.