|
|
马上注册,结识高手,享用更多资源,轻松玩转三维网社区。
您需要 登录 才可以下载或查看,没有帐号?注册
x
关于模板的自动标列表程序) b1 F" R! B* p& b
我兴趣的和我交流: QQ879555882! U z% J8 U8 ?4 s, `8 ~. U" V
表单的基本语法<form action="url" method=*>$ _& Q9 E* K, m M4 z
... ! k6 `$ X6 t6 R% s5 E
... 8 ^) N$ _, G' |# f# l0 |
<input type=submit> <input type=reset>
* i+ L- H4 Z* g</form> *=GET, POST : d# P% q$ Z1 e4 J0 k
6 [1 X3 h3 r3 `7 [, }, r表单中提供给用户的输入形式<input type=* name=**>*=text, password, checkbox, radio, image, hidden, submit, reset' D* t* u/ t L) G3 C9 B* b
**=Symbolic Name for CGI script
9 @+ T3 H; b* [, V$ `& y6 F7 c5 F" I5 U% z$ p* b
http://www.gzsums.edu.cn/webclass/html/br20t.gif 文字输入和密码输入*=text, password " h+ [2 T2 m1 A0 d: S7 Y& ^( K% f# [2 f
<input type=*>0 K: h! [1 q. ^7 s
<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>您的姓名:
8 A3 X% I. l5 _0 Q8 w您的主页的网址:
- E# Q5 j( F5 [% z% F) o密码: $ Z( X0 j$ d% a
) h; W& X# O3 a' u$ n$ {- Z$ E" ~7 g
<input type=* size=**>
, M: @; p( ^: b* k+ v' p: 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>7 W% Q6 [' [2 V0 U/ L, P) c
$ s7 O; e; S {: H- y! P
) p5 Y; F6 |0 s: e5 s
& E6 y$ g; g& r$ w9 M0 y$ t. Ohttp://www.gzsums.edu.cn/webclass/html/br20t.gif 复选框(Checkbox) 和 单选框(RadioButton)
/ i$ V% ~9 ^! u<input type=checkbox>0 [' U/ D+ d& I8 I, L
<input type=checkbox checked>
6 J$ T' @) \+ m5 }1 v<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" H! Y+ @# OApple
) T; v& f! S2 y7 y X( T5 `Orange
) m& I; F8 x& I. P; h) h/ P7 G8 v; `; `1 I
; W% [ w% @6 {' c# g<input type=radio value=**>
4 Y6 ^! @3 n$ _+ s. ]<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! u# y' V( I9 J# q
Apple
0 R8 d w6 ? V7 h1 hOrange
1 A3 n" v' f# A! W. ^! x, a0 k3 p2 j
3 M9 h& r! M& a5 Q, ~# B' |9 h6 ]! o( m0 \, }
http://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>
3 Z2 _$ M; \ Nx2 x4 x6; \3 g- x* c' A" |8 c$ X
- v" j k' r+ k! M/ u
& L& x: ~3 `% u7 _$ R6 o, M1 Ghttp://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.
t$ X& r4 h6 e, p* W$ S3 {) E0 y) N$ j R" f
, L+ F" m4 }: ]
http://www.gzsums.edu.cn/webclass/html/br20t.gif 列表框(Selectable Menu)
1 j' {+ J g; D基本语法<select name=*>
! f" j6 o0 {1 _$ [<option> ...; O' @; d5 X5 C
</select> 6 ^# W, X# J9 l
<option selected> g/ G% J! t8 \0 n7 B2 s- P
<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>
: f4 B1 q1 m/ A
* ?& M' m2 i2 j4 @; X2 l; J# I0 B
<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>
+ y! U ?) |# V4 C! C* u2 H4 m) h1 g4 }1 W3 W' f& ^4 O
1 e6 e4 b+ r# B<select size=** multiple>注意,是用 Ctrl 键配合鼠标实现多选。
% |6 z4 N4 Q. b7 \( X8 q9 A(和 MS-WINDOWS 的 File Manager 一样) ; Q, A( k7 J3 D
<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>
9 y. s8 Q8 I" T& H
3 `' z, l7 j+ N2 m8 w# ?3 A
7 U- c# c( t2 I2 j' Q0 b* X3 `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>
& z- }3 z6 G0 m) j# v5 p$ [5 x+ ?& r f
- T4 {+ Y+ _* j% c8 k% @7 z2 C对于很长的行是否进行换行的设置(Word Wrapping) http://www.gzsums.edu.cn/webclass/html/netscape.gif<textarea wrap=off> ... </textarea>不换行,是缺省设置。
7 Y3 l2 d! `* g9 Q) |" b<textarea wrap=soft> ... </textarea>“软换行”,好象 MS-WORD 里的“软回车”。
. n& i) C, Z1 q5 k0 M4 a5 }<form action=/cgi-bin/post-query method=POST>
8 X/ h( y* i# G+ e6 d<textarea wrap=soft name=comment rows=5 cols=25> </textarea><P>* {8 p5 U4 c7 B2 q/ K+ b. i: ~
<input type=submit><input type=reset>. o) o7 {5 H* A
</form>
0 J7 ?4 V* o! D9 c$ u8 r: o* v# U' r
3 y6 E; w0 j. H; l
; W! A' V9 P! L1 m6 P4 j+ M<textarea wrap=hard> ... </textarea>“硬换行”,好象 MS-WORD 里的“硬回车”。
- m9 N: a2 Z# w8 f<form action=/cgi-bin/post-query method=POST>
' _5 D' H) Y/ Q% y* ?+ |<textarea wrap=hard name=comment rows=5 cols=25> </textarea><P>
: A9 a) G: p! _/ h/ l& t8 @# A<input type=submit><input type=reset>
- `0 u, _1 D+ u</form> |
|