我在 index.php 中有这个表格
<form action="result.php" method="post">
<input type="text" name="word" class="tbox">
<input type="submit" name="submit" value="Generate Now">
</form>
在 result.php 中,我正在检查输入是否与所有验证条件匹配并生成输出。现在,如果它不匹配,我会在我的文本框附近抛出一个错误。这可能通过php吗?