亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ch04_02.htm

?? 用perl編寫CGI的好書。本書從解釋CGI和底層HTTP協議如何工作開始
?? HTM
?? 第 1 頁 / 共 3 頁
字號:
<dd><p>The VALUE attribute specifies the text label that should appear onthe button.</p></dd><dt><b>onClick</b></dt><dd><p>Like submit buttons, reset buttons may have an onClick attribute thatspecifies the JavaScript code to execute if a user clicks on thebutton; returning false from this code will cancel the resetoperation.</p></dd></dl></div><a name="ch04-11-fm2xml" /><div class="sect3"><h3 class="sect3">4.2.3.8. Image buttons</h3><p>You can also have <a name="INDEX-846" /><a name="INDEX-847" />images as buttons. Image buttonsfunction as submit buttons but give you much more flexibility overhow the button looks. Keep in mind that users are generally used tohaving buttons displayed a particular way by the browser andoperating system, and a button in a different format may be confusingto a novice. The HTML for an image button tag looks like this:</p><blockquote><pre class="code">&lt;INPUT TYPE="image" SRC="/icons/button.gif" NAME="result" VALUE="text only"&gt;</pre></blockquote><p>Graphical and text-only browsers treat this element very differently.A text-only browser, such as Lynx, sends the name and value togetherlike most other form elements:</p><blockquote><pre class="code">result=text+only</pre></blockquote><p>However, a graphical browser, like Netscape and Internet Explorer,send the coordinates where the user clicked on the image in additionto the name of the button. The value is not sent. These coordinatesare measured in pixels from the upper-left corner of the image (see<a href="ch04_02.htm#ch04-92099">Figure 4-6</a>).</p><a name="ch04-92099" /><div class="figure"><img width="174" src="figs/cgi2.0406.gif" height="85" alt="Figure 4-6" /></div><h4 class="objtitle">Figure 4-6. Image button coordinates</h4><p>In this example, a graphical browser would submit:</p><blockquote><pre class="code">action.x=50&amp;action.y=20</pre></blockquote><p>Here are the <a name="INDEX-848" />attributes for image buttons:</p><dl><dt><b>VALUE</b></dt><dd><p>The <a name="INDEX-849" />VALUE attribute is sent as the valuefor this element by text browsers.</p></dd><dt><b>SRC</b></dt><dd><p>The <a name="INDEX-850" /><a name="INDEX-851" />SRC attribute specifies the URL tothe image displayed for the button, just as it does in the morecommon &lt;IMG&gt; tag (if the &lt;IMG&gt; tag looks unfamiliar toyou, it's because you probably only recognize it when combinedwith the SRC attribute: &lt;IMG SRC=...&gt;).</p></dd><dt><b><a name="INDEX-852" /><a name="INDEX-853" />onClick</b></dt><dd><p>This attribute behaves just as it does with standard submit buttons.</p></dd></dl></div><a name="ch04-12-fm2xml" /><div class="sect3"><h3 class="sect3">4.2.3.9. Plain buttons</h3><p>The last type of<a name="INDEX-854" /> <a name="INDEX-855" /><a name="INDEX-856" /><a name="INDEX-857" />button is justthat -- a button; it has no special function. To avoid confusingthis button with the other button types, we will refer to it as aplain button. A plain button tag looks like a submit or reset button:</p><blockquote><pre class="code">&lt;INPUT TYPE="button" VALUE="Click for a greeting..."   onClick="alert( 'Hello!' );"&gt;</pre></blockquote><p>The name and value of a plain button is never passed to a CGI script.Because a plain button has no special action, it is meaninglesswithout an <tt class="function">onClick</tt> attribute:</p><dl><dt><b><a name="INDEX-858" /><a name="INDEX-859" /><a name="INDEX-860" /><a name="INDEX-861" />NAME</b></dt><dd><p>The NAME attribute is never sent as part of a request, so it is onlyuseful to JavaScript code.</p></dd><dt><b>VALUE</b></dt><dd><p>The VALUE attribute specifies the name of the button.</p></dd><dt><b>onClick</b></dt><dd><p>The onClick attribute specifies the code to run when the button isclicked. The code's return value has no effect because plainbuttons do not cause <a name="INDEX-862" /> <a name="INDEX-863" /> <a name="INDEX-864" />other behavior.</p></dd></dl></div></div><a name="ch04-13-fm2xml" /><div class="sect2"><h3 class="sect2">4.2.4. The &lt;SELECT&gt; Tag</h3><p>The <a name="INDEX-865" /> <a name="INDEX-866" />&lt;SELECT&gt;tag is used to create a<a name="INDEX-867" />list for users to choose from. It cancreate two different elements that look quite different but havesimilar function: a <a name="INDEX-868" />scrolling box or a menu (also commonlyreferred to as a <a name="INDEX-869" /><a name="INDEX-870" />drop-down).Both elements are displayed in <a href="ch04_02.htm#ch04-52236">Figure 4-7</a>. Unlikethe &lt;INPUT&gt; elements, &lt;SELECT&gt; tags have an opening aswell as a closing tag.</p><p>Here is an example of a menu:</p><blockquote><pre class="code">Choose a method of payment: &lt;SELECT NAME="card" SIZE=1&gt;  &lt;OPTION SELECTED&gt;American Express&lt;/OPTION&gt;  &lt;OPTION&gt;Discover&lt;/OPTION&gt;  &lt;OPTION&gt;Master Card&lt;/OPTION&gt;  &lt;OPTION&gt;Visa&lt;/OPTION&gt;&lt;/SELECT&gt;</pre></blockquote><a name="ch04-52236" /><div class="figure"><img width="481" src="figs/cgi2.0407.gif" height="264" alt="Figure 4-7" /></div><h4 class="objtitle">Figure 4-7. Two forms of select lists: a menu and a scrolling box</h4><p>Here is an example of a <a name="INDEX-871" />scrollingbox:</p><blockquote><pre class="code">Choose the activities you enjoy: &lt;SELECT NAME="activity" SIZE=4 MULTIPLE&gt;  &lt;OPTION&gt;Aerobics&lt;/OPTION&gt;  &lt;OPTION&gt;Aikido&lt;/OPTION&gt;  &lt;OPTION&gt;Basketball&lt;/OPTION&gt;  &lt;OPTION&gt;Bicycling&lt;/OPTION&gt;  &lt;OPTION&gt;Golfing&lt;/OPTION&gt;  &lt;OPTION&gt;Hiking&lt;/OPTION&gt;  ...&lt;/SELECT&gt;</pre></blockquote><p>Scrolling boxes may optionally allow the user to select multipleentries. Multiple options are encoded as separate name-value pairs,as if they had been entered by multiple form elements. For example,if someone selects Aikido, Bicycling, and Hiking, the browser willencode it as <tt class="literal">activity=Aikido&amp;activity=Bicycling&amp;activity=Hiking</tt>.</p><p>Attributes for the &lt;SELECT&gt; tag are:</p><dl><dt><b>SIZE</b></dt><dd><p>The <a name="INDEX-872" />SIZEattribute determines the number of lines visible in the list.Specifying 1 for the SIZE indicates that the list should be a menuinstead.</p></dd><dt><b><a name="INDEX-873" />MULTIPLE</b></dt><dd><p>The MULTIPLE attribute allows the user to select multiple values. Itis only possible if the SIZE attribute is assigned a value greaterthan 1. On some operating systems, the user may need to hold downcertain modifier keys on their keyboard in order to select multipleitems.</p></dd></dl><a name="ch04-14-fm2xml" /><div class="sect3"><h3 class="sect3">4.2.4.1. The &lt;OPTION&gt; tag</h3><p>The &lt;SELECT&gt; tag does not have a value attribute. Each of itspossible values must have an<a name="INDEX-874" /><a name="INDEX-875" /><a name="INDEX-876" /><a name="INDEX-877" />&lt;OPTION&gt;tag around it.</p><p>You may override the value used by a particular option by specifyinga VALUE attribute like this:</p><blockquote><pre class="code">&lt;OPTION VALUE="AMEX" &gt;American Express&lt;/OPTION&gt;</pre></blockquote><p>Options have two optional<a name="INDEX-878" />attributes:</p><dl><dt><b>SELECTED</b></dt><dd><p>The <a name="INDEX-879" />SELECTED attribute specifies that the optionshould be selected by default. When a form is submitted, the name ofthe &lt;SELECT&gt; tag is submitted along with the value of theselected options.</p></dd><dt><b><a name="INDEX-880" />VALUE</b></dt><dd><p>The VALUE attribute is the value that is passed for the option if itis selected. If this attribute is omitted, then it <a name="INDEX-881" /> <a name="INDEX-882" />defaults to the textbetween the &lt;OPTION&gt; and &lt;/OPTION&gt; tags.</p></dd></dl></div></div><a name="ch04-15-fm2xml" /><div class="sect2"><h3 class="sect2">4.2.5. The &lt;TEXTAREA&gt; Tag</h3><p>The final form element, the &lt;TEXTAREA&gt; tag, allows users toenter multiple lines of text. See <a href="ch04_02.htm#ch04-70831">Figure 4-8</a>.</p><a name="ch04-70831" /><div class="figure"><img width="481" src="figs/cgi2.0408.gif" height="228" alt="Figure 4-8" /></div><h4 class="objtitle">Figure 4-8. Text area</h4><p>Text areas have an opening and a closing tag:</p><blockquote><pre class="code">&lt;TEXTAREA ROWS=10 COLS=40 NAME="comments" WRAP="virtual"&gt;Default text&lt;/TEXTAREA&gt;</pre></blockquote><p>This creates a scrolled text field with a visible area of ten rowsand forty columns.</p><p>There is no VALUE property for the<a name="INDEX-883" /><a name="INDEX-884" /><a name="INDEX-885" />&lt;TEXTAREA&gt;tag. Default text should be placed between the opening and closingtags. Unlike other HTML tags, white space -- includingnewlines -- is <em class="emphasis">not</em> ignored between&lt;TEXTAREA&gt; and &lt;/TEXTAREA&gt; tags. A browser will renderthe example above with "Default" and "text"on separate lines.</p><p>Attributes for the &lt;TEXTAREA&gt; tag are:</p><dl><dt><b>COLUMNS</b></dt><dd><p>The <a name="INDEX-886" />COLUMNS attribute specifies the widthof the text area, but like the size of text fields, browsers sizecolumns differently for variable-width fonts.</p></dd><dt><b>ROWS</b></dt><dd><p>The <a name="INDEX-887" />ROWSattribute specifies the number of lines that the text area shoulddisplay. Text bars have scrollbars to access text that does not fitwithin the display area.</p></dd><dt><b>WRAP</b></dt><dd><p>The <a name="INDEX-888" />WRAPattribute specifies what the browser should do if the user typesbeyond the right margin, but note that the WRAP attribute is notimplemented as uniformly as other tags and attributes. Although mostbrowsers support it, it is actually not included in the HTML 4.0standard. In general, specifying "<a name="INDEX-889" />virtual" as the WRAP resultsin the text wrapping within the text area, but it is submittedwithout <a name="INDEX-890" />newlines. Specifying"<a name="INDEX-891" />physical" as the WRAP alsoresults in the text wrapping for the user, but the line breaks aresubmitted as part of the text. Users on different operating systemswill submit different characters for end-of-line characters. If youspecify to omit the WRAP attribute or specify "none" forit, then text <a name="INDEX-892" /> <a name="INDEX-893" /> <a name="INDEX-894" /> <a name="INDEX-895" />will typically scroll beyond the rightside of the text area.</p></dd></dl></div><hr align="left" width="515" /><div class="navbar"><table border="0" width="515"><tr><td width="172" valign="top" align="left"><a href="ch04_01.htm"><img src="../gifs/txtpreva.gif" alt="Previous" border="0" /></a></td><td width="171" valign="top" align="center"><a href="index.htm"><img src="../gifs/txthome.gif" alt="Home" border="0" /></a></td><td width="172" valign="top" align="right"><a href="ch04_03.htm"><img src="../gifs/txtnexta.gif" alt="Next" border="0" /></a></td></tr><tr><td width="172" valign="top" align="left">4. Forms and CGI</td><td width="171" valign="top" align="center"><a href="index/index.htm"><img src="../gifs/index.gif" alt="Book Index" border="0" /></a></td><td width="172" valign="top" align="right">4.3. Decoding Form Input</td></tr></table></div><hr align="left" width="515" /><img src="../gifs/navbar.gif" alt="Library Navigation Links" usemap="#library-map" border="0" /><p><font size="-1"><a href="copyrght.htm">Copyright &copy; 2001</a> O'Reilly &amp; Associates. All rights reserved.</font></p><map name="library-map"><area href="../index.htm" coords="1,1,83,102" shape="rect" /><area href="../lnut/index.htm" coords="81,0,152,95" shape="rect" /><area href="../run/index.htm" coords="172,2,252,105" shape="rect" /><area href="../apache/index.htm" coords="238,2,334,95" shape="rect" /><area href="../sql/index.htm" coords="336,0,412,104" shape="rect" /><area href="../dbi/index.htm" coords="415,0,507,101" shape="rect" /><area href="../cgi/index.htm" coords="511,0,601,99" shape="rect" /></map></body></html>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品自产自拍| 欧日韩精品视频| 青青草精品视频| 亚瑟在线精品视频| 亚洲成av人片在www色猫咪| 韩国精品一区二区| 国产精品538一区二区在线| 在线观看日韩电影| 国产女人aaa级久久久级 | 久久99精品国产.久久久久久| 亚洲欧美日韩中文播放| 一区二区三区在线免费播放| 亚洲国产成人精品视频| 日本va欧美va瓶| 91福利小视频| 日韩免费视频线观看| 国产女主播在线一区二区| 免费观看一级欧美片| 欧美日韩五月天| 久久亚洲精精品中文字幕早川悠里| 久久精品日韩一区二区三区| 亚洲精品欧美综合四区| 日本成人在线网站| 国产一区二区三区日韩| av亚洲产国偷v产偷v自拍| 97久久超碰精品国产| 91麻豆精品国产综合久久久久久| 日韩欧美国产不卡| 日韩av不卡一区二区| 精品污污网站免费看| 一区二区视频在线看| 色www精品视频在线观看| 中文字幕一区二区不卡 | 国产精品成人免费| 中文字幕在线一区| av电影天堂一区二区在线| 国产精品系列在线| 日韩高清欧美激情| 91麻豆精品国产91久久久久久| 亚洲综合色自拍一区| 国内欧美视频一区二区 | 国产高清在线观看免费不卡| 欧美曰成人黄网| 亚洲成a人片综合在线| 欧美日韩国产成人在线91| 国产亚洲成av人在线观看导航| 激情综合色综合久久综合| 久久精品夜色噜噜亚洲aⅴ| 国产成人在线电影| 亚洲天天做日日做天天谢日日欢 | 国产精品1024| 国产精品系列在线| 日本精品一区二区三区高清| 亚洲国产精品一区二区尤物区| 欧美色网一区二区| 亚洲欧美色图小说| 欧美精品在线观看播放| 伊人色综合久久天天人手人婷| 日本久久精品电影| 蜜桃久久久久久| 欧美日韩mp4| 精品在线播放午夜| 中文字幕日韩精品一区| 在线视频亚洲一区| 欧美aⅴ一区二区三区视频| 久久美女艺术照精彩视频福利播放 | 处破女av一区二区| 国产欧美综合在线观看第十页| 不卡视频在线看| 国产日韩欧美精品综合| 一本久久a久久精品亚洲| 中文字幕精品一区二区三区精品| 韩国视频一区二区| 亚洲欧洲制服丝袜| 精品少妇一区二区三区视频免付费 | 欧美日韩精品一区二区三区蜜桃 | 成人午夜视频在线观看| 午夜成人免费视频| 欧美欧美欧美欧美首页| 国产二区国产一区在线观看| 亚洲亚洲精品在线观看| 久久天堂av综合合色蜜桃网| 欧美性xxxxxx少妇| 国产精品123区| 免费xxxx性欧美18vr| 亚洲精选视频免费看| 亚洲精品一区二区精华| 国产成人三级在线观看| 午夜激情一区二区| 自拍偷拍国产精品| 久久午夜羞羞影院免费观看| 欧美中文字幕一二三区视频| 成人高清视频免费观看| 精品一区二区三区在线观看| 亚洲图片一区二区| 中文字幕中文字幕一区| 26uuu亚洲综合色| 在线成人av影院| 色就色 综合激情| 成人免费福利片| 国产一区二区三区美女| 三级一区在线视频先锋| 2024国产精品| 欧美精品第1页| 欧美怡红院视频| 色婷婷精品久久二区二区蜜臂av | 麻豆精品一区二区av白丝在线| 国产精品传媒在线| 国产日本欧美一区二区| 精品伦理精品一区| 欧美电视剧在线观看完整版| 欧美欧美午夜aⅴ在线观看| 欧美日韩一区二区三区免费看 | 日韩免费在线观看| 日韩一二三区视频| 91亚洲精品一区二区乱码| 日本不卡中文字幕| 日韩av在线播放中文字幕| 石原莉奈在线亚洲二区| 麻豆成人综合网| 久久精品国产亚洲aⅴ| 自拍偷拍国产亚洲| 一区二区免费在线播放| 亚洲午夜私人影院| 亚洲一二三四久久| 午夜久久久久久久久| 五月婷婷欧美视频| 日本不卡的三区四区五区| 美女视频一区二区| 国产精品夜夜嗨| 风间由美性色一区二区三区| 天天综合天天做天天综合| 免费在线观看一区二区三区| 久久精品国产在热久久| 国产福利精品一区| 99热精品一区二区| 欧美日韩一卡二卡三卡| 日韩一级大片在线观看| 国产精品系列在线| 亚洲不卡av一区二区三区| 激情都市一区二区| 99热这里都是精品| 5858s免费视频成人| 精品国产1区2区3区| 成人免费在线视频观看| 五月综合激情网| 国产剧情一区二区三区| 色综合色狠狠综合色| 在线成人午夜影院| 久久精品男人天堂av| 亚洲女同一区二区| 精品在线观看免费| 91麻豆福利精品推荐| 欧美日韩一区国产| 欧美国产日韩精品免费观看| 亚洲国产综合91精品麻豆| 久久99国产精品麻豆| 色婷婷综合久久久中文字幕| 精品剧情在线观看| 一区二区三区日韩在线观看| 日韩成人午夜精品| 99精品视频免费在线观看| 精品国产欧美一区二区| 一区二区三区日韩精品视频| 国产永久精品大片wwwapp| 91成人免费电影| 久久久av毛片精品| 香蕉av福利精品导航| jizzjizzjizz欧美| 精品99一区二区三区| 亚洲一区二区中文在线| 国产精选一区二区三区| 欧美一区二区三区视频| 欧美一级片在线看| 亚洲精品免费播放| 丰满亚洲少妇av| 欧美电影免费观看高清完整版在线观看 | 欧美大片拔萝卜| 亚洲第一成人在线| 91色视频在线| 国产精品丝袜一区| 国产精品资源网| 欧美一级欧美三级| 丝袜诱惑亚洲看片| 欧美午夜片在线看| 亚洲男人天堂一区| 成人av在线电影| 久久综合九色综合欧美就去吻| 男人操女人的视频在线观看欧美| 欧美在线综合视频| 一区二区三区中文字幕| 国产欧美一区二区三区沐欲| 欧美一区二区三区爱爱| 亚洲成人777| 欧美男男青年gay1069videost| 亚洲人成精品久久久久久| 成人av动漫网站| 一区二区中文视频| 91猫先生在线| 一级做a爱片久久|