Warning: imagettfbbox() [function.imagettfbbox]: Invalid font filename in D:\xampp\htdocs\register_beifen.php on line 57Warning: imagettftext() [function.imagettftext]: Invalid font filename in D:\xampp\htdocs\register_beifen.php on line 60
这是错误提示

解决方案 »

  1.   

    高手帮忙看一下如何验证下面的表单
    <?php 
       session_start();
       if(($_SESSION['security_code'] == $_POST['security_code']) && (!empty($_SESSION['security_code'])) ) {
          // Insert you code for processing the form here, e.g emailing the submission, entering it into a database. 
          unset($_SESSION['security_code']);
       } else {
          // Insert your code for showing an error message here
       }
    ?><form id="form1" name="form1" method="post" action=""><img src="CaptchaSecurityImages.php?width=100&height=40&characters=5" alt="captcha" />
    <input id="security_code" name="security_code" type="text" />  <label>
      <input type="submit" name="button" id="button" value="提交" />
      </label>
    </form>
      

  2.   

    应该是你给出的字体属性文件有问题,
    文提出在这里:
    $font = "verdana.ttf"使用绝对路径看看
      

  3.   

    你这个图片怎么和php登录验证程序跑一块去了,是不是分开一些比较好