<?php
if($_POST) print_r($_POST);
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head><body>
<form name="form1" method="post" action="">
  <input name="textfield" type="text" value="报价×1.2">
  <input type="submit" name="Submit" value="提交">
</form>
</body>
</html>//output
Array ( [textfield] => 报价×1.2 [Submit] => 提交 ) 不会啊,我的出来是这样子的.

解决方案 »

  1.   

    说具体点,是
    <form >
    <input type=text name=t value="报价×1.2">
    <input type=submit>
    </form>
    <?
    print_r($_GET); //Array ( [t] => 报价×1.2 ) 
    ?>
    还是
    <form method=post>
    <input type=text name=t value="报价×1.2">
    <input type=submit>
    </form>
    <?
    print_r($_POST); //Array ( [t] => 报价×1.2 ) 
    ?>
      

  2.   

    "×"是中文吧. 可能是Apache服务器的编码不是 gb2312. 呵呵,IIS中不会有这样的问题呀.在页面中加了下面这句吗?
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
      

  3.   

    可能是通过GET方式提交的吧,,,所以才会出现这种问题,,POST提交不会
      

  4.   

    "×"是中文吧. 可能是Apache服务器的编码不是 gb2312. 呵呵,IIS中不会有这样的问题呀.
    应该与apache无关吧,你提交后存在什么地方,还是直接显示出来?
      

  5.   

    GET 改为POST强制编码为gb2312
      

  6.   

    各位兄弟,谢谢了。
    我把问题说的具体点,看能不能有办法:
    1.环境 FreeBSD,apache,php
    2.程序用PHPLIB模板方式,HTML摸板含有下句:
       <META content="text/html; charset=gb2312" http-equiv=Content-Type>
    3.表单提交方式为:POST
    4.在处理页面 print_r($_POST); // 结果 Array ( ['subject'] => 报价?.2 ) 是不是这个× 号搞的鬼?怎么办?
      

  7.   

    应该是编码的问题
    你的"×"是中文吗?
    程序中加个:
    header("Content-type: text/html;charset=GB2312");
    试试
      

  8.   

    Re:lawyu(雨淋漓)
    加上去没有用。
      

  9.   

    那可能×不是中文字符,换成其它试试看
    header("Content-type: text/html;charset=UTF-8");
    or 
    header("Content-type: text/html;charset=GBK");