$TureNmae = $_POST["UserName"];

解决方案 »

  1.   

    $TureNmae=$_POST("UserName");-〉$TureNmae=$_POST["UserName"];
      

  2.   

    不好意思,刚才输入错了,不是复制的代码。实际是这样的 $TureNmae = $_POST["UserName"];并且echo出来的也是 aaabbbccc ,但是插入数据库就没有了用户输入的bbb我想问这是字符集的问题吗?
      

  3.   

    你赋值的时候变量名是“$TureNmae”,下面引用的时候变成了“$TureName”
      

  4.   

    晕了,回楼上的,那是笔误。实际代码不是这样的。 $TureName = $_POST["UserName"];刚才我调试了,我发现是PHP自己的问题,我的版本是5.1.6。当有这句话的时候就不正常。$system_htm_left_begin='<table border=0 align=center cellpadding=0 cellspacing=0><tr><td height=2></td></tr></table><table width=979 border=0 cellpadding=0 cellspacing=0 align=center><tr><td width="7" background=BEBEBE><img name=index_temp_r6_c1 src=images/index_temp_r6_c1.jpg width=7 height=6 border=0></td><td width=965 height=6 bgcolor=BEBEBE></td><td width="7"><img name=index_temp_r6_c7 src=images/index_temp_r6_c7.jpg width=7 height=6 border=0 alt=""></td></tr> <tr> <td width=6 height=6 bgcolor=BEBEBE></td><td valign=top> <table width=965 border=0 align=center cellpadding=0 cellspacing=0><tr><td width=242 align=center valign=top bgcolor=FFFFFF bordercolor=FFFFFF>';echo $system_htm_left_begin; //只要把这个值echo出来,那么(就会溢出?)会出现上面往SQL插入的值丢失的情况。以上代码,只要没有echo这个值,那么一切正常。看来是PHP自身的问题(BUG?)