求救:如何读取From传递的循环变量? <?$name="text".$i;$value=$$name;?> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可以通过window.location来在页面中传递参数,如www.abc.com/me.htm&a=1&b=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的页面,你就可以使用数组来调用了 同意上面的,php代码中用for($i=1;$i<count($class);$i++;){ echo $class[$i];}循环输出结果:) 非常感谢Jane11,yougo,Hongky,问题才得以解决.如何把分给你们呢? to Jane11:<?$name="text".$i;$value=$$name;?>这样可以吗?我试过,用echo $value;什么都没有!!你是怎么做出来的?? 【百度分享】MySQL 5.1分区技术初探(二) 安装mysql出错Can't connect to MySQL server on 'localhost' (10061 怎么来对字符串进行替换? 新手求租--PHP学习路程 谁有仿天涯或者猫扑的论坛源码? php从oracle读取的数据,中文变成问号,客户端哪里可以设置? [在线]一个不太明白的老帖子正则问题,请指教 PHP or JSP 是个问题? 如何将MYSQL中的数据导入到EXCEL中?? PHP .NET php安装好后执行有数据库的PHP文件总是如下错误,HELP ME! php怎样对目录下的文件按时间排序?
<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的页面,你就可以使用数组来调用了
for($i=1;$i<count($class);$i++;)
{
echo $class[$i];
}
循环输出结果:)
<?
$name="text".$i;
$value=$$name;
?>
这样可以吗?
我试过,用echo $value;
什么都没有!!
你是怎么做出来的??