|
|
马上注册,结识高手,享用更多资源,轻松玩转三维网社区。
您需要 登录 才可以下载或查看,没有帐号?注册
x
关于模板的自动标列表程序
' t" F2 |5 m3 A/ z) ~# R我兴趣的和我交流: QQ879555882; i( C( L* @- Q
表单的基本语法<form action="url" method=*>
/ \: ]; w( H l( C* \9 J... % S$ M1 Z/ a2 I) X& q/ \3 @2 w( P) ?
...
7 W, P4 z. a4 P<input type=submit> <input type=reset>8 T: i. r# v) B
</form> *=GET, POST
, X' u. S/ [$ X8 C- m% B1 V+ e" A
表单中提供给用户的输入形式<input type=* name=**>*=text, password, checkbox, radio, image, hidden, submit, reset
~7 S: ?! _. r: X) Y4 ?2 V**=Symbolic Name for CGI script $ h3 b/ A, K" C' x4 T; ]
( h- E* I) y: J, [) c/ Ihttp://www.gzsums.edu.cn/webclass/html/br20t.gif 文字输入和密码输入*=text, password
3 c( k% R( p9 [( C7 W<input type=*>3 Q% C+ [6 l! w5 E/ y w$ @
<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>您的姓名:
' Q2 ~: I, d5 I- M5 K9 J; I您的主页的网址: 9 o$ Y+ x) [) V5 O- k
密码: ; |* t; b& @% a! @' U. E
8 B8 c) b! R0 q( M: x# X8 R
x2 Q% z2 G3 u<input type=* size=**>
& C; K( N. D4 V<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>, s6 T& P; ]$ H' A2 u9 _
+ p- e0 U* K& U6 W& y' `4 Q
7 B2 W; w6 v; B. T; g0 J% P. T! k V5 r$ H: l& x( f: o: L: m
http://www.gzsums.edu.cn/webclass/html/br20t.gif 复选框(Checkbox) 和 单选框(RadioButton) 3 \( ~( l; A/ D4 O
<input type=checkbox>
% Q/ ~% B3 y8 X' ?<input type=checkbox checked>
) y- q# a' u( O6 G0 ^) h<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& ^/ ~* y& [% l$ l/ q
Apple) B) u* n) w: s( c# w4 z P5 P
Orange- u: l) G0 i* G+ f# f7 R, ^
: Y5 Z2 `; G" P! G% I- o9 \# Z' X- {
<input type=radio value=**># \3 @" |* d! Y# c! }) J$ p3 M
<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
2 c% }& x2 |5 @0 I: tApple4 |6 z! _! r! q0 o: F$ y7 B$ I
Orange: |: M. L+ ~3 f: M5 V7 \7 u/ ?
8 m+ ?% R4 ?/ H: ]1 ]
+ I; Y: g9 w# }8 A6 Q8 r( q9 u4 Xhttp://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>4 P, {- T" |9 o3 y% j& t( j$ t2 Q
x2 x4 x68 S- l; g9 A8 e# U5 A Q% _
7 v: W: \) g& X
' e( Q# f. D1 {, t: `( @* v
http://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.
( q0 K$ E" B/ h7 }5 N% K
6 Z7 ^8 j! X7 Y! q F
! y& ], c+ Z- k5 C5 shttp://www.gzsums.edu.cn/webclass/html/br20t.gif 列表框(Selectable Menu) ) \) x0 l( K- |
基本语法<select name=*>
4 i: Y9 j3 Y6 T( t1 Z2 d% r<option> ...
1 J: W& K7 u5 F# @</select> , I( j$ S& j6 ^" O
<option selected>- J L1 H& k: Y1 b* M
<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>* E! X6 [- J6 @/ i& f
5 p$ T" Q& d1 V- m( n0 D4 Q
$ W2 C/ t# S1 d' t' 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>: r8 x5 [6 Y6 N% r3 Y, m
2 c$ e2 m7 ~4 i" b! l
: K( p! m) k) Q<select size=** multiple>注意,是用 Ctrl 键配合鼠标实现多选。, o- v' A5 t" Q- p
(和 MS-WINDOWS 的 File Manager 一样)
& y- m2 L, P+ F$ y. Z2 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>! r! I3 ?* f' i5 e1 L7 E4 Q
% e# X1 Y. R- O+ v5 @ O; H$ T& W0 ?' m+ n& ?: o6 b" M' j- m# z
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>
/ U+ {! A. u7 N* T1 p+ q4 h& N5 {, j& }3 p3 c+ t I4 ~
/ H$ q: c; t" T% a- u& w( a
对于很长的行是否进行换行的设置(Word Wrapping) http://www.gzsums.edu.cn/webclass/html/netscape.gif<textarea wrap=off> ... </textarea>不换行,是缺省设置。
/ L7 T# j- b3 b# T4 c<textarea wrap=soft> ... </textarea>“软换行”,好象 MS-WORD 里的“软回车”。 ; n( [2 _( \ a! `4 ^
<form action=/cgi-bin/post-query method=POST>
8 _ K+ K+ J0 L; i v<textarea wrap=soft name=comment rows=5 cols=25> </textarea><P>
& k( A! Z% u; q<input type=submit><input type=reset>
, T. b0 \- C1 t4 ^- ]</form>
& K& a, N6 X8 u1 E8 D- [0 s0 x' [: I* W
: H3 t6 q1 ~$ N) y" n0 o7 S, ~
! w4 o5 o& A0 r& q: F) w% f
<textarea wrap=hard> ... </textarea>“硬换行”,好象 MS-WORD 里的“硬回车”。
& r. s& L/ M/ i<form action=/cgi-bin/post-query method=POST>
' o7 R" c! ~: z) r1 w9 a- t6 @/ v i<textarea wrap=hard name=comment rows=5 cols=25> </textarea><P>
7 B* v0 T7 a# ]3 |* C; I<input type=submit><input type=reset>
: S5 {* [( V8 F" ~& U</form> |
|