|
|
马上注册,结识高手,享用更多资源,轻松玩转三维网社区。
您需要 登录 才可以下载或查看,没有帐号?注册
x
关于模板的自动标列表程序) Y1 |! y$ V! Y6 l8 | F. r
我兴趣的和我交流: QQ8795558829 B2 b; f( q3 @' [) ?; ~, \7 F
表单的基本语法<form action="url" method=*>6 S- r. V, W9 l
... 9 r0 c* L, v/ s$ @( D9 g
...
. n7 E0 K. I, S<input type=submit> <input type=reset>
7 S6 N3 {, M9 z+ _$ [( m1 h</form> *=GET, POST ( J+ B Q \; d/ W0 L3 l0 B
/ \6 J8 F% I0 S: X6 C
表单中提供给用户的输入形式<input type=* name=**>*=text, password, checkbox, radio, image, hidden, submit, reset
9 x q M1 }5 J**=Symbolic Name for CGI script - s: @( y. N, O9 F
* ^+ B5 J ~8 u" b3 T
http://www.gzsums.edu.cn/webclass/html/br20t.gif 文字输入和密码输入*=text, password
: i# S S, r/ ^& j<input type=*>* \. @, p* B7 Q$ I
<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>您的姓名: ; J; u: `7 J1 s( a# V- X& z$ h
您的主页的网址: , @. z6 `0 H9 t6 J5 W
密码: ! q* h7 o4 N6 n, D
- }- y% Z; q3 W
$ [# i. p8 @& h4 ^! ^
<input type=* size=**>
1 S& H; G& F% V' Y; |& |<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>; `$ L: N0 Z" i( A: p
1 y& a+ K3 |/ b' A
0 D9 E6 c, ?+ m; E/ W) E1 h5 i- v! Y5 {- }9 E% {
http://www.gzsums.edu.cn/webclass/html/br20t.gif 复选框(Checkbox) 和 单选框(RadioButton) 2 f+ ^1 n: P! z- B3 q
<input type=checkbox>8 e) L7 c$ j% o$ s/ l. C
<input type=checkbox checked>
6 }4 @8 V1 Z, M<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>Banana1 x! T2 ?2 R: k9 p
Apple% k1 L4 K2 O, R8 ?9 \
Orange
3 C. @! u0 }" O4 z
5 F8 R: w8 W, j0 E# h4 v: ]* G. ?! q' L% u( n
<input type=radio value=**>, v4 g7 O* R/ @2 K; E) J3 H4 g$ A
<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+ b% q, `7 ^6 I, F8 s
Apple- R3 a$ U/ c. Q; E' O: x
Orange; D z f4 c i9 @6 |& O$ o
: F, N H/ Z4 i5 C/ J7 w2 c
6 A6 P3 J$ c9 b) r% R( Fhttp://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>
8 Z3 v, l, Z# j) ?* i* kx2 x4 x6! _( n0 @1 Q8 p; f
2 r: V9 R' c" A( H' a, u; y7 @
" x6 W9 W" v" q+ y1 hhttp://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. S# v- w$ {9 V( i
! w$ |. _; R {; [, e" x2 N: i" _, v( K
, [5 F$ @4 A- Xhttp://www.gzsums.edu.cn/webclass/html/br20t.gif 列表框(Selectable Menu)
/ R# K) T6 c3 N* j4 c8 u$ E8 Q3 F/ i基本语法<select name=*>
+ \) k3 S( `6 w" f! T: \& s<option> ...1 v) Z M/ D+ p' p' G: [3 a
</select>
s8 c( O. Y$ \* t; x# o" C<option selected>& v" v9 |- r+ G, Q4 Y
<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>
+ t% T& E7 o( @( }( U: I
2 l {( v* W( }- |5 d* R. Z
% x+ Q' w3 U2 G% v) y: a<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>8 O9 x% f) z8 |) d' T
+ M3 u0 W# ]6 J/ q
+ a# Z, ~' w8 V# K9 A7 K# a<select size=** multiple>注意,是用 Ctrl 键配合鼠标实现多选。) W0 v: ~8 K5 H( y; h0 d1 Q
(和 MS-WINDOWS 的 File Manager 一样) * R0 s5 I" P* N8 T# a, }% x/ ^
<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>/ `* p3 h! h* d2 Y1 k+ k$ W7 |
0 i5 K% y. }" N0 o. s# }8 V* g \8 ?! Q! V# ?
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>
, d6 z- {! b8 H5 p: l/ ~, d
( a( s/ w& [" P3 w' e& |! h/ T" E' D' W, `% i# j
对于很长的行是否进行换行的设置(Word Wrapping) http://www.gzsums.edu.cn/webclass/html/netscape.gif<textarea wrap=off> ... </textarea>不换行,是缺省设置。
3 U8 ]* x' F3 _$ D<textarea wrap=soft> ... </textarea>“软换行”,好象 MS-WORD 里的“软回车”。
) N7 r, g, o: k0 v5 I<form action=/cgi-bin/post-query method=POST>1 r6 z7 _9 w7 S4 d0 [3 T) T, l4 J
<textarea wrap=soft name=comment rows=5 cols=25> </textarea><P>/ i3 l# u" ^/ y
<input type=submit><input type=reset>
7 O5 z' p' B, p) j</form>; Y( [! Z. ?( Z* [3 {. _6 ^% u6 X8 @
0 W2 ?& J9 E) V! o
! L% g2 V' p) O3 X4 f
: X k- {) w4 A* n<textarea wrap=hard> ... </textarea>“硬换行”,好象 MS-WORD 里的“硬回车”。
& |9 Z# ~2 B4 J( Q<form action=/cgi-bin/post-query method=POST>+ u" s( r9 H- F8 z& G8 G
<textarea wrap=hard name=comment rows=5 cols=25> </textarea><P>
) F5 K# `! h/ J- G+ G<input type=submit><input type=reset>
+ D8 O& [* Q+ q7 B% v; d</form> |
|