|
马上注册,结识高手,享用更多资源,轻松玩转三维网社区。
您需要 登录 才可以下载或查看,没有帐号?注册
x
关于模板的自动标列表程序/ p. Y" M. _4 f
我兴趣的和我交流: QQ879555882: | C; `& L' ^
表单的基本语法<form action="url" method=*>/ S5 L( F0 ]& o# V: R, n/ H
... , b" p O6 l0 H# |2 \& `7 d6 J
...
% t4 A, y4 N& i t$ e<input type=submit> <input type=reset>' D/ J: g* E7 F1 F* C6 c3 e
</form> *=GET, POST
; X: C+ d! r+ G9 X: h1 e9 Q
# @* H4 ^' h+ d. _8 |9 t表单中提供给用户的输入形式<input type=* name=**>*=text, password, checkbox, radio, image, hidden, submit, reset
3 F/ b; J& s; I& p* b7 G2 v2 e**=Symbolic Name for CGI script ; ^% P; p$ j* M" B+ F; A- d( u/ |# W
% E I, g7 k& U% E* |http://www.gzsums.edu.cn/webclass/html/br20t.gif 文字输入和密码输入*=text, password
0 Q4 n7 ?$ O7 f<input type=*>3 Q" t' q. X, L7 T/ @
<input type=* value=**><form action=/cgi-bin/post-query method=POST>您的姓名: <input type=text name=姓名><br>您的主页的网址: <input type=text name=网址 value=http://><br>密码: <input type=password name=密码><br><input type=submit value="发送"><input type=reset value="重设"></form>您的姓名:
; _3 o) M9 Z# K4 b您的主页的网址: $ a: k8 G$ M' D
密码:
W8 t. f K ?) K6 H2 I
4 V* l2 \! `* W% y: J2 ]4 y8 [, d* T Z& q2 d9 @1 U" R' ^: x, C
<input type=* size=**>
! n, M s3 d. B1 F6 B<input type=* maxlength=**><form action=/cgi-bin/post-query method=POST><input type=text name=a01 size=40><br><input type=text name=a02 maxlength=5><br><input type=submit><input type=reset></form>8 n- h, y" M! P7 D+ v' |0 a5 j1 e# T
& X' ~, q3 Y, O" u
4 O* B& n' ^1 }( @/ \' M: f
9 W1 y+ r6 h& `" zhttp://www.gzsums.edu.cn/webclass/html/br20t.gif 复选框(Checkbox) 和 单选框(RadioButton) , u8 b% D, ?( W, X& Y2 Q) k0 z
<input type=checkbox>
! E" g( a- P8 e3 a6 [<input type=checkbox checked>
5 k+ [! V4 ?/ K; _<input type=checkbox value=**><form action=/cgi-bin/post-query method=POST><input type=checkbox name=水果1> Banana<p><input type=checkbox name=水果2 checked> Apple<p><input type=checkbox name=水果3 value=橘子> Orange<p><input type=submit><input type=reset></form>Banana. x) P) }2 E1 V, }* f* S
Apple* H+ g5 w! q) O5 l: c5 _
Orange
' s$ G, I- ^& j( d
4 K' m ` C X2 H' v' P: x% f- n2 {
<input type=radio value=**>
+ p; M: K: |/ `" N4 h<input type=radio value=** checked><form action=/cgi-bin/post-query method=POST><input type=radio name=水果> Banana<p><input type=radio name=水果 checked> Apple<p><input type=radio name=水果 value=橘子> Orange<p><input type=submit><input type=reset></form>Banana# W) e: W3 @! S& r, o( H+ c' j
Apple; Q7 T; O1 Y1 X, W0 e* \# z. `
Orange
6 S2 @& \( n/ @3 u3 j6 d
+ T- f8 j5 r( Q/ H0 N
5 Y3 A! Y: h# u' G3 mhttp://www.gzsums.edu.cn/webclass/html/br20t.gif 图象坐标 在下面选则一个系数后,在图象上点一下,就知道什么是图象坐标了! <input type=image src=url><form action=/cgi-bin/post-query method=POST><input type=image name=face src=f.gif><p><input type=radio name=zoom value=2 checked>x2<input type=radio name=zoom value=4>x4<input type=radio name=zoom value=6>x6<p><input type=reset></form>) [: Y+ h2 R( Z; ?5 `
x2 x4 x6
2 Y' ]2 H" ]+ O3 g9 J3 g
8 T8 x' Z) S+ r
1 ]1 }6 ]2 X5 o( C; N- [3 j a6 ] M7 Nhttp://www.gzsums.edu.cn/webclass/html/br20t.gif 隐藏表单的元素 <input type=hidden value=*><form action=/cgi-bin/post-query method=POST><input type=hidden name=add value=hoge@hoge.jp>Here is a hidden element. <p><input type=submit><input type=reset></form>Here is a hidden element. 9 v. S. W1 b& T9 Z7 G' g9 ~
" `+ K6 M& q) n7 @$ `" B7 g1 f( R# q V+ s8 K% s( ?3 L
http://www.gzsums.edu.cn/webclass/html/br20t.gif 列表框(Selectable Menu)
9 G* x9 ]- f& F2 a' B基本语法<select name=*>8 h* Q# w* K8 n) r6 _
<option> ...8 Q: \& ~& r) R. \0 f8 P
</select> * ? |$ Z8 S! ^, \1 l2 x1 Y
<option selected>7 ]7 {, P% J8 ]
<option value=**><form action=/cgi-bin/post-query method=POST><select name=fruits> <option>Banana <option selected>Apple <option value=My_Favorite>Orange</select><p><input type=submit><input type=reset></form> I1 w1 {) a" o3 F3 F2 v% R9 L
\4 ^6 y4 [6 m- |* Z
. R/ K- o6 X. {6 Q. R<select size=**><form action=/cgi-bin/post-query method=POST><select name=fruits size=3> <option>Banana <option selected>Apple <option value=My_Favorite>Orange <option>Peach</select><p><input type=submit><input type=reset></form>7 T; p% z/ b: E* n- Z
1 P8 J. D& w; y# j
+ ~, R0 V; {, G: O7 Z$ x<select size=** multiple>注意,是用 Ctrl 键配合鼠标实现多选。
" h) \ f% v- {6 M0 _) G(和 MS-WINDOWS 的 File Manager 一样)
6 _$ T6 B9 y. }, g+ X* @9 w3 q<form action=/cgi-bin/post-query method=POST><select name=fruits size=3 multiple> <option selected>Banana <option selected>Apple <option value=My_Favorite>Orange <option selected>Peach</select><p><input type=submit><input type=reset></form>0 a, n5 K- e1 C% t7 n9 L
1 h9 \) V! Z. W& S# O5 x' ~
u% P0 f1 x4 @
http://www.gzsums.edu.cn/webclass/html/br20t.gif 文本区域<textarea name=* rows=** cols=**> ... <textarea><form action=/cgi-bin/post-query method=POST><textarea name=comment rows=5 cols=60></textarea><P><input type=submit><input type=reset></form>
0 |4 k3 f( P% k. N7 r$ u6 I7 [0 Z# t9 C& j
# O7 {1 l0 E7 ?- {
对于很长的行是否进行换行的设置(Word Wrapping) http://www.gzsums.edu.cn/webclass/html/netscape.gif<textarea wrap=off> ... </textarea>不换行,是缺省设置。 . \/ I4 Y0 ^! ?( L% E
<textarea wrap=soft> ... </textarea>“软换行”,好象 MS-WORD 里的“软回车”。 ( i0 Z; j; J, i: Z& {) ~8 S2 T
<form action=/cgi-bin/post-query method=POST>
7 Y9 x; M+ _0 G" e$ s) K! |) j<textarea wrap=soft name=comment rows=5 cols=25> </textarea><P>7 x0 l! W2 ]: ^$ e6 p
<input type=submit><input type=reset>2 n) ?- Q$ ]+ ] a& \3 D
</form>' a6 \* l5 l; ~# s# p
: t' @+ W! g8 \7 w1 L. H% m
9 @" l, a! a. {0 ^+ T6 T8 y/ n) F; W6 k( x& a9 v
<textarea wrap=hard> ... </textarea>“硬换行”,好象 MS-WORD 里的“硬回车”。 6 Z! b! t* L; g# p* _0 l% S: `2 O
<form action=/cgi-bin/post-query method=POST>0 D9 n/ ^1 s! X/ ^
<textarea wrap=hard name=comment rows=5 cols=25> </textarea><P>
" z q/ `& A/ ~<input type=submit><input type=reset>5 Q) W1 m7 N( q1 ^; M/ }
</form> |
|