ak47my 发表于 2008-6-18 21:01

新人求助一个问题,高手进来看看

[color=Red]<form action="http://xxx.xxx.net/index.php?act=Login&amp;CODE=01" method="post" name="LOGIN" onsubmit="return ValidateForm()">
       

               
                <table class='ipbtable' cellspacing="1">
                        <tr>
                                <td width="60%" valign="top">

                                        <fieldset>
                                                <legend><b>登录</b></legend>
                                                <table class='ipbtable' cellspacing="1">
                                                        <tr><td width="50%"><b>请输入您的&nbsp;<b>用户名</b></b></td>
                                                                <td width="50%"><input type="text" size="25" maxlength="64" name="UserName" class="forminput" /></td>                                                        </tr>
                                                        <tr>
                                                                <td width="50%"><b>请输入您的&nbsp;<b>密码</b></b></td>

                                                                <td width="50%"><input type="password" size="25" name="PassWord" class="forminput" /></td>
                                                        </tr>
                                                </table>
                                        </fieldset>
                                </td>
                       
                        </tr>
                        <tr>
                                <td class="formbuttonrow" colspan="2"><input class="button" type="submit" name="submit" value=" 登 录 " /></td>
                        </tr>
                        <tr>

                                <td class="catend" colspan="2"><!-- no content --></td>
                        </tr>
                </table>
        </div>
</form>[/color]







请问如果写在地址栏里应该怎样表示的啊?
http://xxx.xxx.net/index.php?act=Login&amp&UserName=11111&PassWord=11111
这样吗?


我是纯新人

madpbpl 发表于 2008-6-19 03:20

不建议在登陆时用这种写法,
form写成
<form action="http://xxx.xxx.net/index.php method="post" name="LOGIN" onsubmit="return ValidateForm()">
.....
</form>

在http://xxx.xxx.net/index.php页用Request.Form("字段")来取值

hmhz 发表于 2008-6-19 07:31

method="post"  改成 method="get"

yms123 发表于 2008-6-19 10:00

这个是PHP?

页: [1]

编程论坛