当我将此代码集成到 html 文件中时,它什么也不显示,但是当它与其他 html 代码分开时它可以工作。
那么,任何人都可以教我如何将其添加到 html 代码中并将表单输入与 进行比较$chars
吗?
require_once "/jpgraph/jpgraph_antispam.php";//the location is correct!!
$spam = new AntiSpam();
// saved to $chars for later verification of correct entry
$chars = $spam->Rand(8);
$spam->Stroke() ;