解决方案 »

  1.   

    $a=$_POST['ab_cd'];其实你 print_r($_POST); 就知道该怎么写了
      

  2.   

    这是 php 内定的处理方式,除非你修改 php 的内核,否则无法改变
    <form method=post>
    <input type=text name='ab.cd'>
    <input type=submit value=ok>
    </form>
    <?php
    print_r($_POST);
    Array ( [ab_cd] => ) 
      

  3.   

    "."是php字符串连接符,一般不用于变量名,类似保留字
      

  4.   

    为什么要用点呢?不仅在php,就是别的语言,命名什么的都不能用点的。
      

  5.   

    小数点的作用是,连接两个串,你这样写,他会认为 ab 和 cd 两个变量相连,但是又没有 $符