<form name="sampleform">
<small><input type="text" name="firstinput" value="click to get time" onclick="javascript:showCal('Calendar1')"size=20 class="basic-input"></small>
<input name="submit"  method="post" type="button" value="submit" class="btm"/>
</form>那个onclick调用的jsp就是一个日历
http://www.dynamicdrive.com/dynamicindex6/popcalendar2.htm
<?php
if(isset($_POST['submit']) )
echo $_POST['submit'];
?>然后是运行不成功的……原因不明T_T
求指导……先少给点分好了,有人答了再加啊!……每次提问都没有人回答……只能结贴的悲剧孩子飘走……

解决方案 »

  1.   

    <form name="sampleform" method="post">
    //submit控件中的method删掉,method是form元素的属性。
      

  2.   

    <form name="sampleform" action="test.php" method="post"> 
    <small><input type="text" name="firstinput" value="click to get time" onclick="javascript:showCal('Calendar1')"size=20 class="basic-input"></small>
    <input name="submit"  method="post" type="button" value="submit" class="btm"/>
    </form>test.php<?php
    if(isset($_POST['submit']) )
    echo $_POST['submit'];
    ?>
      

  3.   

    //PHP
    if(isset($_POST['submit'])) echo $_POST['firstinput'];
      

  4.   

    <input name="submit" method="post" type="submit" value="submit" class="btm"/>
    不是 button, button 不会产生提交动作
      

  5.   

    可用 $_GET 及 $_POST...
      

  6.   


    我试过了,还是不能用……原因不明
    具体是这样的,如果我单独写个调用那个jsp或者单独用_post传值都是可以用的,但是把它们结合在一起,就运行不起来了……
      

  7.   


    嗯,我知道的,但是即如此还是不行啊,具体原因我在ls写了……orz
    到底肿么回事,只是个读取日期值的小程序而已,就没有办法解决的么T_T