先去看看PHP手册再提问,或者搜索以前的帖子

解决方案 »

  1.   

    我查找了,没知道,请给我网址,谢谢
    但是上边的问题,这样就可以<?
    if ($send):
    echo "ok";
    endif;
    ?><form action="test.php" method="post">
    <input name=username value="" maxlength="20">
    <input name=password value="" maxlength="20">
    <input type=submit value="登 录" name=send>
    </form>为什么一使用图形提交按钮就不行呢,费解啊
      

  2.   

    <form action="test.php" method="post" name="myform">
    <input name=username value="" maxlength="20">
    <input name=password value="" maxlength="20">
    <input type=image src='你的图片' value="登 录" name=submitimg OnClick="ExeSubmit()">
    </form><script>
    function ExeSubmit()
    {   myform.submit();
    }
    </script>
      

  3.   

    我自己给大家解答一下吧,我找到一个最简便的方式
    <?
    if ($send):
    echo "ok";
    endif;
    ?><form action="test.php" method="post">
    <input name=username value="" maxlength="20">
    <input name=password value="" maxlength="20">
    <input type="hidden" name="send" value='submit'>
    <input src="1.gif" type=image>
    </form>真够简单的了,加一个隐藏的即可解决,合二为一
      

  4.   

    呵呵,楼主就应该这样学,PHP在线手册
    http://www.php.net/manual/zh/