<?
$name="text".$i;
$value=$$name;
?>

解决方案 »

  1.   

    可以通过window.location来在页面中传递参数,如www.abc.com/me.htm&a=1&b=2在下个页面中获取后自己截取
      

  2.   

    你也可以这样写
    <from action="xxx.php">
    <input type="text" name="class[1]">
    <input type="text" name="class[2]">
    <input type="text" name="class[3]">
    <input type="text" name="class[4]">
    <input type="text" name="class[5]">
    <input type="text" name="class[6]">
                  .
                  .
                  .
                  .
    <input type="text" name="class[95]">
    <input type="text" name="class[96]">
    </from>到了php的页面,你就可以使用数组来调用了
      

  3.   

    同意上面的,php代码中用
    for($i=1;$i<count($class);$i++;)
    {
       echo $class[$i];
    }
    循环输出结果:)
      

  4.   

    非常感谢Jane11,yougo,Hongky,问题才得以解决.如何把分给你们呢?
      

  5.   

    to Jane11:
    <?
    $name="text".$i;
    $value=$$name;
    ?>
    这样可以吗?
    我试过,用echo $value;
    什么都没有!!
    你是怎么做出来的??