Home > Backend Development > PHP Tutorial > PHP验证码图片显示不了解决方法

PHP验证码图片显示不了解决方法

WBOY
Release: 2016-06-13 09:59:34
Original
910 people have browsed it

PHP验证码图片显示不了
PHP验证码图片显示不了,显示的是一个红色的叉叉。代码如下:



image.php

PHP code
 <br>  <?php <br /> 	session_start(); <br> 	if(isset($_POST['submit'])){ <br> 		if(trim($_POST["test"])==$_SESSION['validationcode']){ <br> 			echo '提交成功 <br>'; <br> 		}else{  <br> 			echo ' <font color="red">验证码输入错误!! </font> <br>'; <br> 		} <br> 	} <br> ?> <br>   <br> 	  <br> 		 <title>Image </title> <br> 		 <meta http-equiv="content-type" content="text/html;charset=gb2312"> <br> 		 <script> <br /> 			function newgdcode(obj,url) { <br /> 				//</script>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template