例子: 原始码<form action="http://your.isp.com/cgi-local/example.cgi" method="POST"> 请输入姓名:<input type="Text" name="name"> <br>请输入密码:<input type="Password" name="pw" maxlength="9"> </form> 显示结果 输入方式五: Submit (传送键)及 Reset (清除键) 这是表单上重要的两个按键,两者所附带的参数相同,但用处不大。 例如:<input type="Submit" name="other_funtion" value="确定" align="MIDDLE"> <input type="Reset" value="清除" align="MIDDLE"> - type="Submit"
设定输入方式为 Submit 或 Reset。 - name="other_funtion"
Submit 的功能随 name 的不同而不同,须和 CGI 配合。若你只需要普通的传送 键,则是其内定,不必用此参数。 - value="确定"
这个值不是输给 CGI 的,而是显示在按键上,可以不用,传送键的内定值为 Submit Query,清除键的内定值为 Reset。 - align="MIDDLE"
可选值:top, middle, bottom, left, right, texttop, baseline, absmiddle。
例子: 原始码<form action="http://your.isp.com/cgi-local/example.cgi" method="POST"> <input type="Submit"><input type="Reset"> <br><input type="Submit" value=" 确定 "><input type="Reset" value="清除"> </form> 显示结果 输入方式六: Image (图片按键)上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] 下一页
|