当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

 ·关于dbchart的问题,    »显示摘要«
    摘要: 为什么在变量生命的时候写 tt: tlineseries; 系统会提示tlineseries未定义呀? 谢谢大家,帮忙解决一下,在线等 ......
 ·打电话    »显示摘要«
    摘要: 请问如何用电脑打电话 ......


php提交表单,怎么会接受不到

表单文件form.htm部分代码如下:  
  <script   lanaguage="javascript">  
  function   go()  
  {  
      form1.action="direct.php";  
      form1.submit();  
  }  
  </script>  
   
  <form   name="form1"   method="post">  
        <select   name="date"   onChange="go()">  
            <option   value="2003-9.htm"   selected>2003年9月</option>  
            <option   value="2003-10.htm">2003年10月</option>  
            <option   value="2003-11.htm">2003年11月</option>  
        </select>  
  </form>  
   
  接受表单文件direct.php如下"  
  <!DOCTYPE   HTML   PUBLIC   "-//W3C//DTD   HTML   4.01   Transitional//EN">  
  <html>  
  <head>  
  <meta   http-equiv="Content-Type"   content="text/html;   charset=gb2312">  
  <title>无标题文档</title>  
  </head>  
   
  <body>  
  <?  
  if(isset($date)){    
  header("Location:   $date");  
  }  
  else  
  {echo   "helloworld";}  
  ?>  
  </body>  
  </html>  
   
   
  但是direct.php怎么都输出"helloworld",也就是$date没有东西  
  怎么回事呀?  
  thanks

NO.1   作者: netvt

<?  
  if(isset($_POST[date])){    
  header("Location:   {$_POST[date]}");  
  }  
  else  
  {echo   "helloworld";}  
  ?>  
 

NO.2   作者: netvt

把   <?   前的所有内容去掉,即以下内容:  
  ------------------------------  
  <!DOCTYPE   HTML   PUBLIC   "-//W3C//DTD   HTML   4.01   Transitional//EN">  
  <html>  
  <head>  
  <meta   http-equiv="Content-Type"   content="text/html;   charset=gb2312">  
  <title>无标题文档</title>  
  </head>  
   
  <body>  
  -------------------------------

NO.3   作者: netvt

把   <?   前的所有内容去掉,即以下内容:  
  ------------------------------  
  <!DOCTYPE   HTML   PUBLIC   "-//W3C//DTD   HTML   4.01   Transitional//EN">  
  <html>  
  <head>  
  <meta   http-equiv="Content-Type"   content="text/html;   charset=gb2312">  
  <title>无标题文档</title>  
  </head>  
   
  <body>  
  -------------------------------


 ·关于cpuid的疑问请高手解答    »显示摘要«
    摘要: 对于取cpu序列号,我一直有个不明白的地方,特向你请教: __asm{ mov eax,01h xor edx,edx cpuid mov s1,edx mov s2,eax } 中的eax中放的是family,model,stepping。但edx中放的是什么呢?看了关于intel的资料,上面说edx中放的是feature flag,不明白这个feature flag是什么?c......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE