當我將這段代碼集成到一個html文件中時,它什麼也沒有顯示,但是當它和其他html代碼分開時它就會工作。在jpgraph中生成反垃圾郵件(驗證碼)相關的一些問題
那麼,有沒有人可以教我如何將它添加到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() ;