你总要输出的吧,在之前输出的页面 直接写在后面不就好了?要不呢 你这个values 从哪里来?
不行就JS吧...

解决方案 »

  1.   

    values值是自己输入的,另外用JS怎么弄啊
      

  2.   

    document.form.startDate.value
    form 等于你的form表单name
      

  3.   

    <input type="text" name="startDate" value=""/>
    <input name="cx" type="button"  value="查询" onclick="javascript:window.location.href='index.php?new='+document.getElementsByName('startDate')[0].value" />但为什么要把简单的事情弄复杂呢?<form action='index.php'>
    <input type="text" name="new" value=""/>
    <input name="cx" type="submit"  value="查询"/>
    </form>
      

  4.   

    有jquery吗? 如果有jquery
    <input type="text" id="startDate" name="startDate" value=""/>
    <input name="cx" type="button"  value="查询" onclick="javascript:window.location.href='index.php?new=$('#startDate').val()" />
      

  5.   

    echo date('Y-m-d', strtotime('+1 day 2014-05-20'));2014-05-21
      

  6.   

    表示没有处理过于高端的js经验,jquery的方式可以尝试一下,不行就写一个js函数嘛,慢慢学习
      

  7.   

    写个function 处理较好。  <input type="text" name="startDate" value=""/>
      <input name="cx" type="button"  value="查询" onclick="cx()" />
      <script type="text/javascript">
      function cx(){
    window.location.href='index.php?new=' + document.getElementsByName('startDate')[0].value;
      }
      </script>
      

  8.   

    为什么么不用表单post提交呢~   如果非要这样写的话 用js处理一下也可以弄- -