我不能用session 传递值也不能用$_post[]来获取当前页面的值
如:这是做验证码的一个PHP文件
<?php
session_start();
 header("content-type:image/jpeg");
 $rand="";
 for($i=0;$i<4;$i++){
  $rand.=dechex(rand(0,15));
 }
    $_SESSION['check']=$rand;
    $im=imagecreate(100,35);
    $bg=imagecolorallocate($im,98,35,76);
    $color=imagecolorallocate($im,rand(0,150),rand(160,255),rand(90,200));
    $font_color=imagecolorallocate($im,255,255,255);
for($i=0;$i<strlen($_SESSION['check']);$i++)
 {
    $seeion=$rand[$i];
    imagestring($im,rand(3,6),rand(0,95),rand(0,18),$seeion,$font_color);
 }
for($i=0;$i<230;$i++)
{
imagesetpixel($im,rand()%100,rand()%35,$color);
}
 for($i=1;$i<3;$i++)
 {
  imageline($im,rand(0,15),rand(0,35),rand(95,100),rand(0,35),$color);
 }
    imagejpeg($im);
?>

这是一个简单的HTML网页代码
<?php
echo $_SESSION["check"];
echo $_post["check"];
 ?>
 <html>
  <form action="" method="post">
  <img src="check.php" alt="刘旭"/>  <input type="text" name="check"  />  <input type="submit"  value="提交"/>
  </form>
</html>
但是运行时总是说我没有定义