|
|
马上注册,结识高手,享用更多资源,轻松玩转三维网社区。
您需要 登录 才可以下载或查看,没有帐号?注册
x
关于模板的自动标列表程序; G8 H8 S- {6 @$ O+ m0 j# d
我兴趣的和我交流: QQ879555882- b' H ~9 U& ?9 L% T; ~0 V
表单的基本语法<form action="url" method=*>- Y4 Z( N! ~/ m& b1 q* r( `7 r
...
* R( c% G5 L* N5 ~... - D: _9 o# K) s4 O7 p
<input type=submit> <input type=reset>
0 K# I& @: U" D+ j7 g. c% c</form> *=GET, POST ) F3 P" o6 y9 ]; {4 b
; t0 F8 t6 S2 k% C1 n1 t4 ]( e. ?' R
表单中提供给用户的输入形式<input type=* name=**>*=text, password, checkbox, radio, image, hidden, submit, reset& F; N8 C% D$ o% w/ ?% J5 k& ?
**=Symbolic Name for CGI script
8 o2 M) ]9 `/ {# u. U
}2 Z0 c: b' E! | k$ v. Shttp://www.gzsums.edu.cn/webclass/html/br20t.gif 文字输入和密码输入*=text, password 9 x, I1 R0 J8 g$ t! o) v! b# Y7 Y0 D0 g6 L
<input type=*>
9 r. n/ l# ]% P I8 K: X, z<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>您的姓名: : N' h0 F& ?( Q e% u$ Q. L3 |( r
您的主页的网址:
7 P, g2 o! I5 t3 h3 k密码: ' c( J, @" r7 v
5 V2 X% i9 J4 _% t7 N9 Z
) ~, M; p: }8 v5 d<input type=* size=**>/ B6 I, g3 r" D* x# ~6 u+ _
<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>$ S1 u( l' }" |, G
$ s4 b8 N+ @ y- |( d# [% a9 V6 _8 t6 o1 U% E+ p
' R, d# u- |+ N% Q) Rhttp://www.gzsums.edu.cn/webclass/html/br20t.gif 复选框(Checkbox) 和 单选框(RadioButton) . g) g$ h- f& x% [# l0 A
<input type=checkbox>
- u* A. [& o1 l% o5 u5 r<input type=checkbox checked>
# F# n N, L; Q+ t# |<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
8 Q) L3 h7 K1 U) hApple
# g6 L# ]" S. O, `6 h# _) tOrange( j/ H5 [- F; \
/ r5 ?( P: w9 ^& A; H7 Z
* |1 v! S, {% [3 g" \6 U( ~<input type=radio value=**>
* P- \( Z4 x" Q; T4 b% s- x<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
4 D! x8 C5 l9 v" W, l/ ZApple. B; Q. c2 m, @& Z' N" h+ r
Orange2 `( x' s. E7 l \+ U
% r/ u8 _* d% C
- l# [1 f; k) ~& N, p& k4 h6 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>( d4 g3 w+ @3 f( q) d% a: W
x2 x4 x6
. Y0 T7 Q8 T Z$ r, W. Q
, @% Q/ V4 p- m5 P: j
& p* q; }# o ^2 f$ b1 z8 zhttp://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. 1 P$ y+ L: N! l, @; | x& ?$ B* ]
8 Y4 J2 G* t4 c# A1 q U3 D
% l$ |) a. f3 Y, }( t8 v; Khttp://www.gzsums.edu.cn/webclass/html/br20t.gif 列表框(Selectable Menu) 7 B5 y3 E3 U- h$ K& |. R
基本语法<select name=*>4 Q* B2 z# |0 h/ q! M
<option> ...; w4 v& o8 d* F8 x
</select>
# g' y E" ^. I5 V6 n/ R& i<option selected>
0 Z6 b1 e8 B6 Y) w<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>4 s+ z0 @6 O8 u& d# O
! E! P$ B8 x) M& C9 W/ T s4 H
7 i! n; z1 E3 |7 s6 Y, L<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>, m' B' B9 s1 Q Z6 y0 x0 Z- ^9 a
7 X3 V/ E) E9 t- r$ \% B
( f5 w/ L5 S, x7 A/ ^7 r<select size=** multiple>注意,是用 Ctrl 键配合鼠标实现多选。
! @- [% ?2 j+ c4 j7 ^: F(和 MS-WINDOWS 的 File Manager 一样) * w9 {0 |" L) P8 V5 V3 G
<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>
2 U8 A# d& y# V+ I5 q: [0 z8 x
2 o; f% T3 G- m/ \+ Z0 o5 x/ }8 m7 y: d. |: b
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>
1 ^$ f) Q0 M) U' @4 e8 r0 D! F" H* N- w1 |1 ^+ [- X; d. c; e' d
, {6 |0 \2 {5 ^% Y" X对于很长的行是否进行换行的设置(Word Wrapping) http://www.gzsums.edu.cn/webclass/html/netscape.gif<textarea wrap=off> ... </textarea>不换行,是缺省设置。 3 @/ E1 h- Z* r# d: U- Z
<textarea wrap=soft> ... </textarea>“软换行”,好象 MS-WORD 里的“软回车”。
1 B6 N- ?1 e, m$ l, }6 b<form action=/cgi-bin/post-query method=POST>- D* t; y6 u5 H7 C; o0 [$ [ U
<textarea wrap=soft name=comment rows=5 cols=25> </textarea><P>. k' |+ ?- O+ d2 K) q! {! \& ?# U
<input type=submit><input type=reset>- Y* @0 |# z8 I+ x6 U& {
</form>4 S( E4 `' R8 d* m7 o2 g! S5 [6 ?
& P# K% S# _& V0 c4 f: V- I* A6 B9 T, E
: W2 e" o/ y* s* s7 A: h# }- C
<textarea wrap=hard> ... </textarea>“硬换行”,好象 MS-WORD 里的“硬回车”。
+ s+ }( I/ i# t, h7 `! _+ ^<form action=/cgi-bin/post-query method=POST> I A2 S& a" Y& J0 _1 h5 @" w
<textarea wrap=hard name=comment rows=5 cols=25> </textarea><P>: E" C, F$ Y9 f e
<input type=submit><input type=reset>
4 Y& [. c2 T! M7 |</form> |
|