PHP初级教程(PHP入门教程)


2ǃゲѝᇥ ⚍ⱘᄺਬ᳔ৢ䖒ࠄ⣀ゟᓔথϔϾЁᇣൟ㔥キⱘ∈ᑇDŽ java ⱘ 1/10 䛑ϡࠄˈᰃ asp ⱘ 1/2 䛑ϡࠄDŽ៥Ӏ䆒㕂њ 128 ᄺᯊⱘ䇒⿟ৃҹᅠֱܼ䆕䳊䍋 ೼ c/c++ǃjavaǃphpǃasp 䖭ѯᓔথ䇁㿔Ёˈphp ᰃ᳔ᆍᯧᄺⱘ䇁㿔ˈᄺд៤ᴀᰃ c ੠ 1ǃ䮼ᾯԢ ЎҔМ㽕ᄺд PHP˛ ᑧࡳ㛑ⱘ㔥义⿟ᑣবᕫकߚㅔऩDŽ OracleǃSybaseǃMySQLǃODBC ㄝ೼ݙⱘ໻໮᭄ᐌ㾕᭄᥂ᑧDŽՓ⫼ᅗ㓪ݭϔϾ৿᭄᳝᥂ г䆌 PHP ᳔ᔎ໻੠᳔䞡㽕ⱘ⡍ᕕᰃᅗⱘ᭄᥂ᑧᬃᣕˈⳂࠡ݊ᬃᣕ㣗ೈ㽚Ⲫњࣙᣀ LAMP˅ˈ݋᳔᳝催ⱘᗻ㛑ӋḐ↨ˈো⿄Ā咘䞥㒘ড়āDŽ 䌍᭄᥂ᑧ Mysql 䜡ড়Փ⫼Ѣ Linux ᑇৄϞ˄ेܡ䌍 Web ᳡ࡵ䕃ӊ Apache ੠ܡ⦃๗ЁˈᐌϢ 䌍䕃ӊˈᅗ㛑䖤㸠೼ࣙᣀ WindowsǃLinux ㄝ೼ݙⱘ㒱໻໮᭄᪡԰㋏㒳ܡ⾡PHP ᰃϔ ᑈˈ1995 ᑈথᏗ݊㄀ϔϾ݀ᓔ⠜ᴀˈ៾ℶⳂࠡᏆথᏗⱘ᳔ᮄ⠜ᴀЎ 5.26DŽ ⱘ㛮ᴀ䇁㿔DŽᅗ੠໻ᆊ᠔❳ⶹⱘ ASPϔḋˈᰃϔ䮼ᐌ⫼Ѣ Web 㓪⿟ⱘ䇁㿔DŽPHP 䜱䝓Ѣ 1994 ݊ᅬᮍキ⚍˄www.php.net ˅ⱘᅮНᴹ䇈ˈPHP ᰃϔ⾡᳡ࡵ఼ッǃ䎼ᑇৄǃHTML ጠܹᓣ PHP ᰃ“Hgpertext Preprocessorā៪“Personal Home Page Toolsāⱘㅔݭˈᓩ⫼ ҔМᰃ PHP˛ AlexaTOP500 Ё೑㔥キᥦৡˈ᳝ 394 ᆊՓ⫼њ PHP ᡔᴃˈऴᭈԧ↨՟ⱘ 78.8%˗ PHP ᡔᴃⱘ㔥キ᳝ 192 ᆊˈऴᭈԧ↨՟ⱘ 76.8%˗ ೼ Google ⱘ䮼᠋ǃ䫊㸠ǃᬓᑰǃҎᠡㄝ 25 Ͼ㸠Ϯߚ߿ᥦৡࠡकⱘ 250 ᆊ㔥キЁˈ䞛⫼ ᳔ᮄ䌘᭭㸼ᯢˈ೑ݙ 80%ҹϞⱘࡼᗕ㔥キՓ⫼ PHP 䖯㸠ᓔথ˗ ܹ䗝ⱘଃϔϔ⾡㛮ᴀ䇁㿔˗ ḍ᥂ TIOBE ݀ৌᴗ࿕㒳䅵ˈPHP 〇ᅮ៤Ўܼ⧗Ѩ໻᳔ফ⃶䖢ⱘ㓪⿟䇁㿔ПϔˈᑊϨᰃ ⱘ 27%˗ ḍ᥂ EDC ݀ৌᴗ࿕乘䅵ˈ2008 ᑈ PHP ҢϮҎ᭄ᇚ๲ࡴ 37%ˈ䖰䍙 JAVA ⱘ 16%੠.NET ܼ⧗ 5000 ϛѦ㘨㔥キЁˈ᳝ 3000 ϛҹϞˈे䍙䖛 60%ⱘ㔥キ೼Փ⫼ⴔ PHP ᡔᴃ˗ ஍ཝ 䇒ූヨ䆄 ԛྡྷඟ ㄀ 1 义 㣅ᠡ㔥ǃ51job ㄝ᢯㘬㔥キৃҹথ⦄ˈ↣໽ⱘ PHP ⿟ᑣਬ䳔∖䞣䛑೼ 1000 ҹϞˈ㗠⿟ᑣਬ 䱣ⴔ IT Ϯ੠Ѧ㘨㔥ⱘ䍙䗳থሩˈӕϮᇍ PHP ⿟ᑣਬⱘ䳔∖г໻䞣๲ࡴˈ䱣ᛣᶹ䆶Ёढ PHP Ҏᠡ⦄⢊ 䌍䕃ӊˈ䰡ԢњӕϮᶊ䆒៤ᴀDŽܡ 䌍˖೼⌕㸠ⱘӕϮᑨ⫼ FAMP ᑇৄЁˈFreeBSDǃApacheǃMySQLǃPHP 䛑ᰃܡ4ǃ 3ǃᠻ㸠䗳ᑺᖿ˖ऴ⫼㋏㒳䌘⑤ᇥˈҷⷕᠻ㸠䗳ᑺᖿDŽ 䞣ⱘҷⷕৃҹ݅ѿDŽ 䇁⊩ㅔऩǃкݭᆍᯧˈᮍ֓ᄺдᥠᦵDŽ⦄೼Ꮦ䴶Ϟг᳝њ໻䞣ⱘкˈৠᯊ Internet Ϟг᳝໻ 2ǃᯧᄺᗻ˖PHP ጠܹ೼ HTML 䇁㿔ЁˈϨമᣕ㛮ᴀ䇁㿔ЎЏˈϢ JavaǃC ㄝ䇁㿔ϡৠˈ ASP ႆ㕢ⱘᓔথ䇁㿔ˈᑊᑓЎ⌕㸠DŽ ޴Тᬃᣕ᠔᳝ⱘ᪡԰㋏㒳ᑇৄঞ᭄᥂ᑧ㋏㒳ˈℷᰃᅗⱘ䖭⾡㛑࡯䅽 UNIX/Linux ᳝њϔ⾡Ϣ ܼ䆒ᅮˈPHP ݋᳝њ݀䅸ⱘᅝܼᗻ㛑DŽ 䎼ᑇৄ⡍ᗻ˖ASP ↨ϡϞ PHP ⱘ䎼ᑇৄ㛑࡯ˈPHP 䆌໮Ꮉ⿟Ꮬ᠟Ё䖯㸠њẔ⌟ˈৠᯊᅗϢ Apache 㓪㒢೼ϔ䍋ⱘᮍᓣгৃҹ䅽ᅗ݋᳝♉⌏ⱘᅝ 1ǃ㡃དⱘᅝܼᗻ˖PHP ᰃᓔ⑤䕃ӊˈ᠔᳝ PHP ⱘ⑤ҷⷕ↣ϾҎ䛑ৃҹⳟᕫࠄˈҷⷕ೼ PHP 䇁㿔Ӭ࢓ ᖿⱘᕜ໮䛑ᰃ php ᓔথҎਬDŽ њDŽ᠔ҹѦ㘨㔥ϮݙϞछⱘ᳔އϞⱘ䯂乬њˈ㒚㡖Ϟⱘ䯂乬䖭䮼䇁㿔ⱘᓔথ㗙䛑᳓ҢϮ㗙㾷 ༅এњᕜ໮催ሖ⃵ᶊᵘϞⱘⷨおᴎӮDŽ㗠 php ೼䕏ᵒᥠᦵПৢህৃҹ᳈໮ⱘ㗗㰥催ሖ⃵ᶊᵘ ᕜ໮ᑩሖⱘ㒚㡖䯂乬ˈϔⳈϞϡࠄϔϾ↨䕗催ⱘሖ⃵ᴹ㗗㰥䯂乬DŽ㒚㡖Ϟ㢅ⱘᯊ䯈໾໮ড㗠 ಴Ў݊Ҫ䇁㿔㟇ᇥ㽕ᄺдᑊҢϮᕜ໮ᑈᠡ㛑࢝ᔎㅫϞᥠᦵˈ಴Ў໻ᆊ䛑ᖙ乏ᥠᦵ䖭ѯ䇁㿔ⱘ ݊ᅲ䖭ᰃϔϾᕜ໻ⱘ䇃ऎˈᕜ໮ҎህᰃᬊⲞѢℸˈ೼ҢϮⱘᕜⷁᯊ䯈ݙ䍄Ϟњᕜ催ⱘৄ䰊DŽ ሑㅵ php 䮼ᾯԢˈᄺд䍋ᴹᆍᯧˈ಴ℸ᳝ѯҎ䇃ҹЎ䖭ᰃϔϾϡ໾᳝থሩࠡ᱃ⱘ䇁㿔DŽ 4ǃথሩぎ䯈໻ 㒣䖛ݙ䚼෍䆁ݡҢџ php 乍ⳂⱘᓔথDŽ 䇈᥹ফ䖛 php ϧϮ෍䆁ⱘҎਬњDŽᕜ໮ӕϮ᮴ৃ༜ԩПϟা㛑᢯ᬊ᳝݊Ҫᓔথ䇁㿔㒣偠ⱘҎˈ ⱘ᢯㘬ֵᙃDŽԚᰃѦ㘨㔥ӕϮ᳔༈⮐ⱘ䯂乬ህᰃ᢯ᬊϡࠄ᳝ᅲ䰙 php ᄺд㒣偠ⱘҎਬˈ᳈߿ ϟˈ޴Т䖭ѯӕϮ䛑᢯㘬䖛 php Ⳍ݇ᓔথҎਬˈ㗠Ϩ↣໽೼Ѧ㘨㔥Ϟ᳝໻䞣ⱘ php ᓔথҎਬ 㔥ᯧˈtomˈqqˈbaidu ㄝ޴Т᠔᳝ⱘ໻ൟ㔥キDŽ໻ᆊৃҹϞ᧰㘠㔥៪݊Ҫ᢯㘬㔥キ㾖ᆳϔ Ѧ㘨㔥Ⳍ݇ӕϮ޴Т䛑೼⫼ php 䇁㿔䖯㸠㔥キᓔথDŽ݊Ёࣙᣀ googleˈsinaˈsohuˈ 3ǃ䳔∖ᯎ php ҢϮҎਬাᰃ java ៪ asp ҢϮҎਬⱘ 1/40 ᎺেDŽ ⛁䮼ⱘ java ៪ asp ᢯㘬ֵᙃ↨䕗ˈৃҹথ⦄ php ᢯㘬䞣䖒ࠄ java ៪ asp ⱘ 1/3 ᎺেˈԚᰃ ᳝Ѧ㘨㔥Ⳍ݇㒣偠ˈᕜ䲒෍䆁ད䖭䮼䇒⿟DŽ঺໪ˈҢ∖㘠ⱘ㾦ᑺᴹⳟˈᣓ php ᢯㘬ֵᙃ੠᳔ ෍䆁 php ⱘᴎᵘгᇥПজᇥDŽ಴Ў php ᰃϔϾ੠Ѧ㘨㔥㋻ᆚⳌ݇ⱘ䇒⿟ˈϔ㠀ⱘ෍䆁ᴎᵘ≵ 䇒ූヨ䆄 ⳌᇍϢ݊Ҫᓔথ䇁㿔ˈᥠᦵ php ⱘ⿟ᑣਬⳂࠡ䴲ᐌᇥDŽᄺ᷵෎ᴀϞ≵᳝ᓔ䆒 php 䇒⿟ⱘˈ ㄀ 2 义 x ੑҸ㸠㛮ᴀDŽ 䞠ⱘ⬉㛥ЁDŽ 㾜᳡ࡵッⱘ php 义䴶DŽབᵰাᰃᅲ偠 php 㓪⿟ˈ᠔᳝ⱘ䖭ѯ䛑ৃҹ䖤㸠೼㞾Ꮕᆊ ఼ᯊˈᅝ㺙ᑊ䜡㕂 phpˈ✊ৢˈৃҹ⫼ web ⌣㾜఼ᴹ䆓䯂 php ⿟ᑣⱘ䕧ߎˈे⌣ ᵤ఼˄cgi ៪㗙᳡ࡵ఼῵ഫ˅ǃweb ᳡ࡵ఼੠ web ⌣㾜఼DŽ䳔㽕೼䖤㸠 web ᳡ࡵ 䖭ᰃ php ᳔Ӵ㒳ˈгᰃ᳔Џ㽕ⱘⳂᷛ乚ඳDŽᓔሩ䖭乍Ꮉ԰䳔㽕݋໛ҹϟϝ⚍˖php 㾷 x ᳡ࡵッ㛮ᴀDŽ php 㛮ᴀЏ㽕⫼ѢҹϟϝϾ乚ඳ˖ cookiesDŽԚ php ⱘࡳ㛑䖰ϡሔ䰤ѢℸDŽ ᅗⱘ cgi ⿟ᑣ㛑໳ᅠ៤ⱘᎹ԰ˈ՟བᬊ䲚㸼ऩ᭄᥂ˈ⫳៤ࡼᗕ㔥义ˈ៪㗙থ䗕ˋ᥹ᬊ ӏԩџDŽphp Џ㽕ᰃ⫼Ѣ᳡ࡵッⱘ㛮ᴀ⿟ᑣˈ಴ℸৃҹ⫼ php ᴹᅠ៤ӏԩ݊خPHP 㛑 ҔМ˛خPHP 㛑 䞛⫼њ PHP ᡔᴃDŽ ᅛ㟾ሔ䛑ˈټ⼼೼㒓фपǃ∝㥢㟾ぎ݀ৌⱘ⼼ࡵ໘⧚ǃOrange ⷁֵϮࡵ໘⧚ˈ⫮㟇㕢೑㘨䙺 ೼ˈՓ⫼ PHP ӕϮЁϡУϔѯ㨫ৡⱘϪ⬠໻݀ৌˈ↨བᖋᛣᖫ䫊㸠ⱘѸᯧ㋏㒳ǃढᇨ㸫ⱘ㙵 㛑䅸ⶹࠄ PHP ೼থ䖒㽓ᮍ೑ᆊⱘথሩᔶ࢓DŽᅲ䰙ϞⳂࠡ೼㽓ᮍ៥Ӏৃҹⳟࠄ PHP ⱘ᮴᠔ϡ 䕃੠ Sun 䖭ѯ໻݀ৌⱘᎺেˈᘏᰃ㾝ᕫ PHP ᓔথᡔᴃ৿䞣Ԣˈ㗠ϡሥѢҢџ䖭⾡ᓔথˈϡ 4ǃҎᠡᇍ PHP ⱘ䅸ⶹ⿟ᑺ㙸⌙˖ᕜ໮ⱘ Web Ҏᠡ≵᳝ᛣ䆚ࠄ PHP ⱘӋؐˈᄬ⬭Ѣᖂ Web ⱘথሩDŽ ॳ಴ˈ䖭⾡Ꮦഎⱘ䳔∖䖬≵᳝ড作ࠄ೑ݙⱘᬭ㚆ԧ㋏Ёˈৠᯊ䕧䗕ࠄӕϮⱘҎᠡгᰃ㨑ӡѢ ៤ϧϮ䇒⿟ˈ㟇ᇥ㽕᳝ 3 ᑈҹϞⱘᯊ䯈˗㗠Ⳃࠡ⬅Ѣ೑ݙⱘᬭ㚆ԧࠊᘏᰃ㨑ৢѢᏖഎ䳔∖ⱘ ໛ǃᔶټ⛁⚍ⱘᡔᴃᬃᣕˈԚᰃ೑ݙ䖬≵᳝៤❳ⱘ䅸ⶹˈϔ乍ᮄᡔᴃҢᑨ⫼ǃ៤❳ǃࠄҎᠡ ࠄ⒥വˈ㒣ᐌᰃϸᑈ៪ϔᑈˈ⫮㟇᳈ⷁⱘ਼ᳳˈህӮ᳝ᮄⱘ⛁⚍ߎ⦄ˈPHP 㱑✊ᰃ᥼ࡼ䖭ѯ 3ǃWeb ᓔথᡔᴃথሩ䖙䗳ⱘ㒧ᵰ˖⬅ѢѦ㘨㔥ᰃ催䗳থሩ㸠ϮˈϔϾݙᆍ⛁⚍Ңѻ⫳ ੠ϡ㋏㒳DŽܼع㋏ϡ ⬅ѢϧϮⱘ෍䆁䇒⿟ⱘंУˈPHP Ҏᠡ᳈໮ഄ䞛প㞾ᄺ੠ձ䴴㔥㒰ᴹ㦋পⶹ䆚ˈᇐ㟈ⶹ䆚ԧ ᄺ䇒⿟ˈ㱑✊ᕜ໮ⱘᴎᵘ᳝ᛣ৥ᓔ䆒 PHP ෍䆁䇒⿟ˈԚ䛑㢺Ѣ≵᳝Ⳍ݇ⱘ䇒⿟ݙᆍ੠䆆ᏜDŽ ᇍ PHP ⱘ䅸ⶹ⿟ᑺ੠↨䕗᱂䘡ⱘ෍䆁ᴎᵘDŽⳂࠡ೼೑ݙ PHP ⱘϧϮ෍䆁ᴎᵘᕜᇥˈࣙᣀ໻ PHP 䇁㿔೼㽓ᮍⱘᑨ⫼䖰䖰催Ѣ݊ᅗⱘ㔥㒰ᓔথ䇁㿔ˈЏ㽕ᰃ˖ܼع2ǃ෍䆁ԧ㋏ⱘϡ ໛DŽټ 䌘䞥ৢⳒ੠ᴀ䑿ⱘ㸠Ϯ⡍⚍ˈ໮䞛পњ Linux ㄝᓔ⑤ᑇৄˈԚᰃ≵᳝Ⳍᑨⱘᓔ⑤䕃ӊⱘҎᠡ ⫳њ໻䞣ⱘⳌ݇Ҏᠡˈৠᯊ⬅ѢଚϮⳂⱘˈ䰏⹡њᓔ⑤䕃ӊⱘথሩDŽѦ㘨㔥݀ৌ≵᳝ᔎ໻ⱘ ਬ੠䚼ߚⱘ Java. JSP ˈ⬅Ѣᖂ䕃੠ Sun ݀ৌⱘ䴌ЏӬ࢓ˈᡩܹњ໻䞣ⱘᏖഎ䌍⫼ˈҢ㗠ѻ ໛ϡ䎇˖೑ݙⱘ㔥㒰ᓔথ䇁㿔ҎᠡЏ㽕ᰃ෎Ѣ Windows ᑇৄⱘ ASP ᓔথҎټ1ǃҎᠡ ᰃ⿟ᑣਬЁ᳔☿ⱘˈ䖭⾡Ϲ䞡կϡᑨ∖ⱘሔ䴶೼᳾ᴹ޴ᑈᔧЁ䖬ᇚᛜⓨᛜ⚜DŽ 䇒ූヨ䆄 ੠᢯㘬ቫԡⱘկ∖↨՟ᰃ 1˖40ˈᕜ໮݀ৌञᑈ䛑᢯ϡࠄϔϾড়䗖ⱘ PHP ⿟ᑣਬDŽ䖭Ͼቫԡ ㄀ 3 义 ingres ovrimos informix oracle˄oci7 ੠ oci8˅ ibm db2 odbc unix dbm hyperwave mysql velocis filepro˄া䇏˅ direct ms-sql sybase empress msql solid dbase frontbase sqlite adabasd interbase postgresql ݭ᭄᥂ᑧᬃᣕⱘ㔥义ㅔऩᕫ䲒ҹ㕂ֵDŽⳂࠡˈphp ᬃᣕབϟ᭄᥂ᑧ˖ php ᳔ᔎ໻᳔ᰒ㨫ⱘ⡍ᗻПϔˈᰃᅗᬃᣕᕜ໻㣗ೈⱘ᭄᥂ᑧDŽ⫼᠋Ӯথ⦄߽⫼ php 㓪 ࠄ᭛ӊ㋏㒳ЁDŽټⳈ᥹ᡞᅗӀᠧॄߎᴹˈ៪㗙ᇚᅗӀᄬ ᓣⱘ xml ᭛ӊDŽphp 㛑໳㞾ࡼ⫳៤䖭ѯ᭛ӊˈ೼᳡ࡵッᓔ䕳ߎϔഫࡼᗕݙᆍⱘ㓧ᄬˈৃҹ ࡼ⬏˄Փ⫼ libswf ੠ ming˅DŽ䖬㛑໳䴲ᐌㅔ֓ⱘ䕧ߎ᭛ᴀˈ՟བ xhtml ҹঞӏԩ݊ᅗᔶ ǃpdf ᭛ӊ⫮㟇 flashڣՓ⫼ phpˈᑊϡሔ䰤Ѣ䕧ߎ htmlDŽphp 䖬㛑㹿⫼ᴹࡼᗕ䕧ߎ೒ php 5 ᓹ㸹њ php 4 ⱘ䖭ϔᔅ⚍ˈᓩܹњᅠܼⱘᇍ䈵῵ൟDŽ Ԛᕜ໮ҷⷕҧᑧ੠໻ൟⱘᑨ⫼⿟ᑣ˄ࣙᣀ pear ᑧ˅ҙՓ⫼ oop ҷⷕᴹᓔথDŽˈޚ᳝ⱘᷛ ᯊ䗝ᢽՓ⫼䴶ᇍ䖛⿟੠䴶ᇍᇍ䈵ˈ៪㗙ϸ㗙⏋੠ⱘᮍᓣᴹᓔথDŽሑㅵ php 4 ϡᬃᣕ oop ᠔ 㓐Ϟ᠔䗄ˈՓ⫼ phpˈৃҹ㞾⬅ഄ䗝ᢽ᪡԰㋏㒳੠ web ᳡ࡵ఼DŽৠᯊˈ䖬ৃҹ೼ᓔথ Փᕫ php 㛑໳԰Ў cgi ໘⧚఼ᴹᎹ԰DŽˈޚphp ᬃᣕ cgi ᷛ caudiumǃxitamiǃomnihttpd ㄝDŽᇍѢ໻໮᭄ⱘ᳡ࡵ఼ˈphp ᦤկњϔϾ῵ഫ˗䖬᳝ϔѯ personal web server˄pws˅ǃnetscape ҹঞ iplant serverǃoreilly website pro serverǃ ᣕњ໻໮᭄ⱘ web ᳡ࡵ఼ˈࣙᣀ apacheǃmicrosoft internet information server˄iis˅ǃ solaris ੠ openbsd˅ǃmicrosoft windowsǃmac os xǃrisc os ㄝDŽҞ໽ˈphp Ꮖ㒣ᬃ php 㛑໳⫼೼᠔᳝ⱘЏ⌕᪡԰㋏㒳Ϟˈࣙᣀ linuxǃunix ⱘ৘⾡ব⾡˄ࣙᣀ hp-uxǃ php-gtk ᛳ݈䍷ˈ䇋䆓䯂݊ http://gtk.php.net ҹ㦋প᳈໮ֵᙃDŽ php-gtk ᰃ php ⱘϔϾᠽሩˈ೼䗮ᐌথᏗⱘ php ࣙЁᑊϡࣙ৿ᅗDŽབᵰᇍ ߽⫼ php-gtk ᴹ㓪ݭ䖭ѯ⿟ᑣDŽ⫼䖭⾡ᮍ⊩ˈ䖬ৃҹ㓪ݭ䎼ᑇৄⱘᑨ⫼⿟ᑣDŽ ⫼᠋䴲ᐌ㊒䗮 phpˈᑊϨᏠᳯ೼ᅶ᠋ッᑨ⫼⿟ᑣЁՓ⫼ php ⱘϔѯ催㑻⡍ᗻˈৃҹ ᇍѢ᳝ⴔ೒ᔶ⬠䴶ⱘḠ䴶ᑨ⫼⿟ᑣᴹ䇈ˈphp ៪䆌ϡᰃϔ⾡᳔དⱘ䇁㿔ˈԚᰃབᵰ x 㓪ݭḠ䴶ᑨ⫼⿟ᑣDŽ 䖭ѯ㛮ᴀгৃҹ⫼ᴹ໘⧚ㅔऩⱘ᭛ᴀDŽ ๗˅៪㗙 task scheduler˄windows ⦃๗˅ⱘ᮹ᐌ䖤㸠ⱘ㛮ᴀᴹ䇈ᰃ⧚ᛇⱘ䗝ᢽDŽ ᓣˈҙҙা䳔㽕 php 㾷ᵤ఼ᴹᠻ㸠DŽ䖭⾡⫼⊩ᇍѢձ䌪 cron˄unix ៪㗙 linux ⦃ 䇒ූヨ䆄 ৃҹ㓪ݭϔ↉ php 㛮ᴀˈᑊϨϡ䳔㽕ӏԩ᳡ࡵ఼៪㗙⌣㾜఼ᴹ䖤㸠ᅗDŽ䗮䖛䖭⾡ᮍ ㄀ 4 义 <1....ᷛᖫᇍП䯈DŽ ᷛᖫᇍП䯈ࡴܹᄺਬ㽕ᰒ⼎ⱘ᭛ᴀेৃDŽ⊼ᛣ˖ᷛᖫᇍা ᙃϔ㠀ᰃ㔥义ⱘĀЏ乬āˈ㽕ᇚᄺਬⱘ㔥义ⱘЏ乬ᰒ⼎ࠄ⌣㾜఼ⱘ乊䚼݊ᅲᕜㅔऩˈা㽕೼ Փ⫼䖛⌣㾜఼ⱘҎৃ㛑䛑Ӯ⊼ᛣࠄ⌣㾜఼にষ᳔Ϟ䖍㪱㡆䚼ߚᰒ⼎ⱘ᭛ᴀֵᙃˈ䙷ѯֵ 4.... བ㸼⼎ᷛᖫᇍЁⱘ᭛ᴀՓ⫼㪱㡆ᰒ⼎೼⌣㾜఼ⱘḚݙDŽ OliveǃNavyǃPurpleǃGrayǃYellowǃLimeǃAguaǃFuchsiaǃSilverǃRedǃBlue ੠ Tealˈ 㑶㡆DŽℸ໪ˈ䖬ৃҹՓ⫼ Html 䇁㿔᠔㒭ᅮⱘᐌ䞣ৡᴹ㸼⼎买㡆˖BlackǃWhiteǃGreenǃMaroonǃ rrggbb ᰃ⫼݁Ͼक݁䖯ࠊ᭄㸼⼎ⱘ RGB(े㑶ǃ㓓ǃ㪱ϝ㡆ⱘ㒘ড় 买㡆ˈབ#ff0000 ᇍᑨⱘᰃ ҹϞ৘Ͼሲᗻৃҹ㒧ড়Փ⫼ˈབDŽᓩোݙⱘ䇈ᯢ 㡆DŽ 䆒㕂ℷ೼㹿ߏЁⱘ䫒᥹ⱘ买 䆒㕂ᏆՓ⫼ⱘ䫒᥹ⱘ买㡆DŽ 㡆 䆒㕂䫒᥹买㡆DŽ 䫒᥹Ў㪱 ᴀ 䆒㕂᭛ᴀ买㡆DŽ 㪱㡆᭛ ᱃ 䆒㕂㚠᱃买㡆DŽ 㑶㡆㚠 ሲᗻ ⫼䗨 ⼎՟ ᴹDŽϸϾᷛᖫᖙ乏ϔഫՓ⫼DŽᷛᖫЁ䖬ৃҹ᳝ҹϟሲᗻ˖ ㄝᇚӮ೼⌣㾜఼ⱘḚݙᰒ⼎ߎڣǃ
ǃ
ㄝㄝӫ໮ⱘᷛᖫˈᅗӀ᠔ᅮНⱘ᭛ᴀǃ೒ ...ᰃ Html ᭛ḷⱘЏԧ䚼ߚˈ೼ℸᷛᖫᇍП䯈ৃࣙ৿

ǃ

ǃ

ǃ 3. ᖙ乏ϔഫՓ⫼DŽ ⱘᷛᖫᇍˈᷛᖫᇍП䯈ⱘݙᆍᰃϡӮ೼⌣㾜఼ⱘḚݙᰒ⼎ߎᴹⱘDŽϸϾᷛᖫ ǃㄝㄝᷛᖫᇍˈ䖭ѯᷛᖫᇍ䛑ᰃᦣ䗄Html᭛ḷⳌֵ݇ᙃ ੠ᵘ៤ Html ᭛ḷⱘᓔ༈䚼ߚˈ೼ℸᷛᖫᇍП䯈ৃҹՓ⫼ 2.... ডˈᅗᬒ೼ Html ᭛ḷⱘ᳔ৢ䖍ˈ⫼ᴹᷛ䆚 Html ᭛ḷⱘ㒧ᴳˈϸϾᷛᖫᖙ乏ϔഫՓ⫼DŽ 䇒ූヨ䆄 ᷛᖫ⫼Ѣ Html ᭛ḷⱘ᳔ࠡ䖍ˈ⫼ᴹᷛ䆚 Html ᭛ḷⱘᓔྟDŽ㗠ᷛᖫᙄᙄⳌ ㄀ 6 义 ੠ৢ䖍ⱘ᭛ᴀⱘ㸠Ϣ㸠П䯈ⱘ䎱⾏ᇚ↨䕗ᇣˈᄺਬϡོ䆩䆩ⳟDŽ 㸠ˈे
ࠡ䖍੠ৢ䖍ⱘ᭛ᴀⱘ㸠Ϣ㸠П䯈ⱘ䎱⾏↨䕗໻ˈ㢹ᬒ೼

ⱘ䞠䖍߭
ࠡ䖍 Փ⫼Ϟ䖬᳝ϔᅮⱘᡔᎻˈབᵰᄺਬᡞ
ࡴ೼

ᷛᖫᇍⱘ໪䖍ˈᇚ߯ᓎϔϾ໻ⱘಲ䔺ᤶ
ᰃϔϾᕜㅔऩⱘᷛᖫˈᅗ≵᳝㒧ᴳᷛᖫˈ಴Ўᅗ⫼ᴹ߯ᓎϔϾಲ䔺ᤶ㸠DŽ೼
ⱘ 2.
ԩϔϾDŽབ

㸼⼎ᷛᖫᇍЁⱘ᭛ᴀՓ⫼ሙЁⱘᇍ唤ᮍᓣDŽ align="">

DŽalign ৃҹᰃ Left(Ꮊᇍ唤 ǃCenter(ሙЁ ੠ Right(েᇍ唤 ϝϾؐЁⱘӏ ೼⌣㾜఼ϞDŽ঺໪ˈ

ᷛᖫ䖬ৃҹՓ⫼ align ሲᗻˈᅗ⫼ᴹ䇈ᯢᇍ唤ᮍᓣˈ䇁⊩ᰃ˖

ᷛᖫᇍᰃ⫼ᴹ߯ᓎϔϾ↉㨑ˈ೼ℸᷛᖫᇍП䯈ࡴܹⱘ᭛ᴀᇚᣝ✻↉㨑ⱘḐᓣᰒ⼎ 1.

...

䆆ⱘḐᓣᷛᖫ㒳㒳䛑ᰃ⫼ѢᷛᖫᇍП䯈ⱘDŽ ㉏ⱘϰ㽓ˈ䖭ℷᰃ៥Ӏ೼㡖ѠЁᇚ㽕䇜ࠄⱘDŽ೼ᄺдПࠡˈᖙ乏ᔎ䇗ϔϟˈ៥Ӏ䖭Ͼ㡖Ё᠔ ϞϔϾ㡖Ё៥Ӏ䆆њ Html ᭛ḷⱘ෎ᴀᷛᖫˈԚ៥Ӏ䖬ϡⶹ䘧ᗢḋ೼⌣㾜఼Ёᰒ⼎᭛ᴀП ѠǃḐᓣᷛᖫ ᰒ⼎ᬜᵰབϟ೒˖

㑶㡆㚠᱃ǃ㪱㡆᭛ᴀ

ᰒ⼎೼⌣㾜᳔఼Ϟ䖍㪱㡆ᴵЁⱘ᭛ᴀ 䇒ූヨ䆄 ㄀ 7 义 ㄀ 8 义 䇒ූヨ䆄 3.
...
ᷛᖫᇍП䯈ࡴܹⱘ᭛ᴀᇚӮ೼⌣㾜఼Ёᣝϸ䖍㓽䖯ⱘᮍ ᓣᰒ⼎ߎᴹDŽ 4.
...
,
...
,
...
...
⫼ᴹ߯ᓎϔϾ᱂䗮ⱘ߫㸼ˈ
...
⫼ᴹ߯ᓎ߫㸼ЁⱘϞሖ乍Ⳃˈ
⫼ᴹ߯ᓎ߫㸼Ё᳔ϟሖ乍Ⳃˈ
...
...
䛑ᖙ乏ᬒ೼
...
ᷛᖫᇍП䯈DŽⳟϔϟϟ䴶ⱘ՟ᄤᄺਬህӮᯢⱑњ˖ 㣗՟ 1-2˖߯ᓎϔϾ᱂䗮߫㸼 ϔϾ᱂䗮߫㸼
Ё೑ජᏖ
࣫Ҁ
Ϟ⍋
ᑓᎲ
㕢೑ජᏖ
ढⲯ乓
㡱ࡴહ
㒑㑺
ᬜᵰབ೒˖ ㄀ 9 义 䇒ූヨ䆄 5.
    ...
,
    ...
,
  • ...
    1. ...
    ᷛᖫᇍ⫼ᴹ߯ᓎϔϾ᭄᳝ᷛᄫⱘ߫㸼˗
      ...
    ᷛᖫᇍ⫼ᴹ߯ᓎϔϾ ᳝ᷛ೚⚍ⱘ߫㸼˗
  • ...
  • ᷛᖫᇍা㛑೼
      ...
      ...
    ᷛᖫᇍП䯈Փ⫼ˈ ℸᷛᖫᇍ⫼ᴹ߯ᓎϔϾ߫㸼乍ˈ㢹
  • ...
  • ᬒ೼
      ...
    П䯈߭↣Ͼ߫㸼乍ࡴϞϔ Ͼ᭄ᄫˈ㢹೼
      ...
    П䯈߭↣Ͼ߫㸼乍ࡴϞϔϾ೚⚍DŽ䇋ⳟϟ䖍ⱘ՟ᄤ˖ 㣗՟ 1-3˖᭄᳝ᷛᄫ៪೚⚍ⱘ߫㸼

      Ё೑ජᏖ

    1. ࣫Ҁ
    2. Ϟ⍋
    3. ᑓᎲ

      㕢೑ජᏖ

    • ढⲯ乓
    • 㡱ࡴહ
    • 㒑㑺
    㣗՟ 1-3 ᬜᵰབ೒˖ 䇋ⳟϟ䖍㓐ড়ⱘ՟ᄤDŽ ⱘপؐᰃ៥Ӏ೼㡖ϔЁ䆆䖛ⱘक݁䖯ࠊ RGB 买㡆ⷕ៪ Html 䇁㿔㒭ᅮⱘ买㡆ᐌ䞣ৡDŽ݋ԧ⫼⊩ ⫼ᴹᬍবᄫԧⱘ໻ᇣˈᅗৃҹপؐ˖-1ǃ ੠+1˗㗠 color ሲᗻ߭⫼ᴹᬍব᭛ᴀⱘ买㡆ˈ买㡆 ᛣഄᬍবˈ䖭ѯᬍবЏ㽕ᰃ䗮䖛ᇍᅗⱘϸϾሲᗻ size ੠ color ⱘ᥻ࠊᴹᅲ⦄ⱘDŽsize ሲᗻ ...ᰃϔᇍᕜ᳝⫼ⱘᷛᖫᇍˈᅗৃҹᇍ䕧ߎ᭛ᴀⱘᄫԧ໻ᇣǃ买㡆䖯㸠䱣 4.... ೼ৢ䖍㓐ড়ⱘ՟ᄤЁߎ⦄DŽ 䗮ᐌгᰃ᭰ԧࡴ咥ԧ DŽ䖭ѯᷛᖫᇍⱘ⼎՟гᇚ ...߭⫼ᴹ䕧ߎࡴ䞡᭛ᴀ 䗮ᐌᰃ᭰ԧࡴ咥ԧ ˗ 䗮ᐌᰃ᭰ԧ˗...⫼ᴹ䕧ߎ䳔㽕ᔎ䇗ⱘ᭛ᴀ ...⫼ᴹ䕧ߎᠧᄫᴎ亢Ḑᄫԧⱘ᭛ᴀ˗...⫼ᴹ䕧ߎᓩ⫼ᮍᓣⱘᄫԧˈ 䖭ѯᷛᖫᇍⱘ⫼⊩੠Ϟ䖍ⱘϔḋˈᏂ߿াᰃ೼Ѣ䕧ߎⱘ᭛ᴀᄫԧϡ໾ϔḋ㗠ᏆDŽ 3...., ..., ..., ... ᓣ䕧ߎDŽৢ䖍ᇚӮ᳝ϔϾ㓐ড়ⱘ՟ᄤˈ᠔ҹℸ໘ህϡݡ԰䆺㒚䆆㾷њDŽ ᔶᓣ䕧ߎ˗⫼ᴹՓ᭛ᴀҹ᭰ԧᄫⱘᔶᓣ䕧ߎ˗⫼ᴹՓ᭛ᴀҹϟࡴϔߦ㒓ⱘᔶ 㒣ᐌՓ⫼ WORD ⱘҎᇍ䖭ϝᇍᷛᖫᇍϔᅮᕜᖿህ㛑ᥠᦵDŽ⫼ᴹՓ᭛ᴀҹ咥ԧᄫⱘ 2...., ..., ... 䆱ˈ֓ৃҹḍ᥂ᅲ䰙䳔㽕䗝⫼䖭݁ᇍᷛᖫЁⱘϔᇍDŽ ᰃᷛᖫЁ h ৢ䴶ⱘ᭄ᄫ䍞໻ᷛ乬᭛ᴀህ䍞ᇣDŽབᵰᄺਬⱘ Html ᭛ḷЁ䳔㽕䕧ߎᷛ乬᭛ᴀⱘ ेϔ᳝݅݁ᇍᷛ乬ⱘᷛᖫᇍDŽ

    ᰃ᳔໻ⱘᷛ乬ˈ㗠
    ߭ᰃ᳔ᇣⱘᷛ乬ˈгे Html 䇁㿔ᦤկњϔ㋏߫ᇍ᭛ᴀЁⱘᷛ乬䖯㸠᪡԰ⱘᷛᖫᇍ˖

    ……
    ˈ 1.

    ……
    html ҷⷕЁ᭛ᴀᷛᖫⱘ㓐ড়⼎՟ˈᏠᳯᄺਬ㛑䅸ⳳ䯙䇏DŽ Ӏᇚ䇜ϔ䇜᭛ᴀ䕧ߎⱘᄫԧˈབ᭰ԧǃ咥ԧᄫǃϟࡴϔߦ㒓ㄝㄝDŽ೼ᴀ㡖ⱘ᳔ৢ㒭ߎњϔϾ ϞϔϾ㡖Ё៥ӀᏆ㒣䆆њབԩ೼⌣㾜఼Ё䕧ߎ᭛ᴀˈҹঞ᭛ᴀ䕧ߎⱘḐᓣˈ䖭Ͼ㡖Ё៥ ϝǃ᭛ᴀᷛᖫ CSS ḋᓣ㸼ᯊˈϢ CSS 䖯㸠ᨁ䜡ˈ⫼ DIV+CSS ᴹᏗሔ㔥义ˈ䖭ѯݙᆍᇚ೼ CSS 䚼ߚ䆺㒚ҟ㒡DŽ

    ...

    ᷛᖫᇍ䴲ᐌⳌԐˈৠḋ᳝ align ᇍ唤ᮍᓣሲᗻDŽ
    ᳔䞡㽕ⱘᑨ⫼ᰃ೼ৢ䴶䆆ࠄ
    ...
    ᷛᖫᇍ⫼ᴹᥦ⠜໻ഫ Html ↉㨑ˈг⫼ѢḐᓣ࣪㸼ˈℸᷛᖫᇍⱘ⫼⊩Ϣ 䇒ූヨ䆄 6.
    ...
    ㄀ 10 义 ˖㣗՟ 1-4 ᬜᵰབ೒

    size পؐ“+1”ǃcolor পؐ“red”ᯊⱘ᭛ᴀ

    ࡴ䞡ⱘ᭛ᴀ

    ᔎ䇗ⱘ᭛ᴀ

    ᓩ⫼ᮍᓣⱘ᭛ᴀ

    ᠧᄫᴎ亢Ḑⱘ᭛ᴀ

    ϟࡴϔߦ㒓᭛ᴀ

    ᭰ԧᄫ᭛ᴀ

    咥ԧᄫ᭛ᴀ

    ᳔ᇣⱘᷛ乬

    Փ⫼ h3 ⱘᷛ乬

    ᳔໻ⱘᷛ乬

    ᭛ᴀᷛᖫⱘ㓐ড়⼎՟ 䇒ූヨ䆄 㣗՟ 1-4˖᭛ᴀᷛᖫⱘ㓐ড়⼎՟ ㄀ 11 义 ᇍˈᑨ䆹ᰃ⫼Ⳍᇍ䏃ᕘˈ᠔䇧Ⳍᇍ䏃ᕘˈ乒ৡᗱНህᰃ㞾ᏅⳌᇍϢⳂᷛԡ㕂DŽ೼Ϟ՟Ё 䖭ḋϔϾ䏃ᕘDŽ䙷Мˈ೼ index.htm ᭛ӊЁ㽕Փ⫼ҔМḋⱘ䏃ᕘᴹᅮԡ photo.jpg ᭛ӊਸ਼˛ Ⲭˈгৃ㛑೼ aa Ⳃᔩϟˈ᳈ৃ㛑೼ bb ⳂᔩϟˈᘏП≵᳝⧚⬅Ӯ᳝ c:/website/img/photo.jpg ᇚ义䴶ϞӴࠄ㔥キⱘᯊ׭ህᕜৃ㛑Ӯߎ䫭њˈ಴ЎԴⱘ㔥キৃ㛑೼᳡ࡵ఼ⱘ F Ⲭˈৃ㛑೼ d ಴Ў⹂ᅲৃҹ೼ᣛᅮⱘԡ㕂े c:/website/img/photo.jpg Ϟᡒࠄ photo.jpg ᭛ӊˈԚᰃᔧԴ བᵰԴՓ⫼㒱ᇍ䏃ᕘ c:/website/img/photo.jpgˈ䙷М೼㞾Ꮕⱘ䅵ㅫᴎϞᇚϔߛℷᐌˈ c:/website/img/photo.jpg c:/website/index.htm 义䴶 index.htm,೼䖭Ͼ义䴶Ё㘨᥹᳝ϔᓴ೒⠛ photo.jpgDŽҪӀⱘ㒱ᇍ䏃ᕘབϟ˖ DŽВϔϾ՟ᄤˈ⦄೼᳝ϔϾމᴹߚᵤϔϟЎҔМӮথ⫳೒⠛ϡ㛑ℷᐌᰒ⼎ⱘᚙܜ䅽៥Ӏ ҔМᰃⳌᇍ䏃ᕘ˖ ఼ⱘḍⳂᔩˈ಴ℸᔧ㔥キⱘḍⳂᔩϢ᳡ࡵ఼ḍⳂᔩϡৠᯊˈህӮথ⫳䫭䇃DŽ 䰽ᗻⱘˈ಴Ў㽕ⶹ䘧䖭䞠᠔ᣛⱘḍⳂᔩᑊϡᰃԴⱘ㔥キⱘḍⳂᔩˈ㗠ᰃԴⱘ㔥キ᠔೼ⱘ᳡ࡵ photo.jpg ᭛ӊ೼䖭Ͼ㔥キⱘḍⳂᔩϞⱘ img Ⳃᔩ䞠DŽԚᰃ䖭ḋՓ⫼ᇍѢ߱ᄺ㗙ᴹ䇈ᰃ݋᳝亢 ঺໪ˈ೼㔥キⱘᑨ⫼Ёˈ䗮ᐌ៥ӀՓ⫼"/"ᴹ㸼⼎ḍⳂᔩˈ/img/photo.jpg ህ㸼⼎ гᰃ㒱ᇍ䏃ᕘDŽ ⱘԡ㕂DŽ㗠೼㔥キЁ㉏Ԑҹ http://www.pckings.net/img/photo.jpg ᴹ⹂ᅮ᭛ӊԡ㕂ⱘᮍᓣ ӊԡ㕂ⱘ䏃ᕘህᰃ㒱ᇍ䏃ᕘDŽ៥Ӏϡ䳔㽕ⶹ䘧݊Ҫӏԩֵᙃህৃҹḍ᥂㒱ᇍ䏃ᕘ߸ᮁߎ᭛ӊ ⶹ䘧 photo.jpg ᭛ӊᰃ೼ F Ⲭⱘ website Ⳃᔩϟⱘ img ᄤⳂᔩЁDŽ㉏ԐѢ䖭ḋᅠᭈⱘᦣ䗄᭛ ⼎᭛ӊⱘԡ㕂ⱘᮍᓣህᰃ䏃ᕘˈ՟བা㽕ⳟࠄ䖭Ͼ䏃ᕘ˖c:/website/img/photo.jpg ៥Ӏህ ໻ᆊ䛑ⶹ䘧ˈ೼៥ӀᑇᯊՓ⫼䅵ㅫᴎᯊ㽕ᡒࠄ䳔㽕ⱘ᭛ӊህᖙ乏ⶹ䘧᭛ӊⱘԡ㕂ˈ㗠㸼 ҔМᰃ㒱ᇍ䏃ᕘ˖ ϟ䴶៥Ӏᴹҟ㒡ϔϟⳌᇍ䏃ᕘ੠㒱ᇍ䏃ᕘDŽ ⱘ᭛ᴀDŽ Ϟᯊᰒ⼎ڣⱘᆑ੠催ˈ咬䅸ऩԡгᰃ䈵㋴DŽalt ሲᗻᰃᔧ哴ᷛ⿏ࡼࠄ೒ڣ੠ Height ሲᗻᰃ೒ ㋴DŽwidthڣⱘ䖍Ḛˈৃҹপ໻Ѣ៪㗙ㄝѢ  ⱘᭈ᭄ˈ咬䅸ऩԡᰃڣݡᦤњDŽborder ሲᗻᰃ೒ ⱘᇍ唤ᮍᓣˈ೼ࠡ䖍ⱘ㡖ЁᏆ㒣䆆њᕜ໮њˈ䖭䞠ህϡڣwidth ੠ height ሲᗻDŽalign ᰃ೒ Ёᰃᖙ乏䌟ؐⱘˈᰃᷛᖫЁϡৃ㔎ᇥⱘϔ䚼ߚDŽ䰸ℸП໪ˈᷛᖫ䖬᳝ altǃalignǃborderǃ ᅲ䰙Ϟህᰃ䗮䖛䏃ᕘᇚ೒ᔶ᭛ӊጠܹࠄᄺਬⱘ᭛ḷЁDŽᖙ乏ᔎ䇗ϔϟˈsrc ሲᗻ೼ᷛᖫ 䖭Ͼؐᰃ೒ᔶ᭛ӊⱘ᭛ӊৡˈᔧ✊ࣙᣀ䏃ᕘˈ䖭Ͼ䏃ᕘৃҹᰃⳌᇍ䏃ᕘˈгৃҹᰃ㒱ᇍ䏃ᕘDŽ 㒭ࡴܹࠄ Html ᭛ḷЁˈ㗠ᰃᇚᷛᖫᇍⱘ src ሲᗻ䌟ؐˈڣᷛᖫᑊϡᰃⳳℷഄᡞ೒ 1. ⱘ䕧ߎDŽڣ䴲ᐌ䞡㽕ⱘϔϾᮍ䴶ˈHtml 䇁㿔гϧ䮼ᦤկњᷛᖫᴹ໘⧚೒ ೼㔥义ࠊ԰Ёᰃڣⱘ䆱ᇚ༅এ䆌໮⌏࡯ˈ೒ڣݡㅔऩᴈ㋴ⱘ㔥义བᵰা᳝᭛ᄫ㗠≵᳝೒ ᷛᖫڣ䇒ූヨ䆄 ಯǃ೒ ㄀ 12 义 ϡࡴܹℸሲᗻ∈ᑇ㒓ᇚ᳝䰈ᕅ DŽ ࡴܹᷛᖫेৃՓ⫼ˈᅗᰃ⫼ᴹࡴܹϔᴵ≵᳝䰈ᕅⱘ∈ᑇ㒓 ᛇᖙ໻ᆊᇍ color ሲᗻᏆ㒣ᕜ❳ᙝњˈ೼ℸህϡݡ⫼໮䆆DŽnoshade ሲᗻϡ⫼䌟ؐˈ㗠ᰃⳈ᥹ ㋴DŽڣnoshade ሲᗻDŽsize ᰃ䆒㕂∈ᑇ㒓ⱘ८ᑺˈ㗠 width ᰃ䆒ᅮ∈ᑇ㒓ⱘᆑᑺˈ咬䅸ऩԡᰃ
    ᷛᖫᰃ೼ Html ᭛ḷЁࡴܹϔᴵ∈ᑇ㒓ˈᅗৃҹⳈ᥹Փ⫼ˈ݋᳝ sizeǃcolorǃwidth ੠ 2.
    㗗㰥DŽা㽕㗗㰥ҪӀϡৠП໘ህৃҹњDŽخ䏃ᕘЁⳌৠⱘ䚼ߚ䛑ৃҹᗑ⬹ˈϡ ᘏ㒧˖䗮䖛ҹϞⱘ՟ᄤৃҹথ⦄ˈ೼ᡞ㒱ᇍ䏃ᕘ䕀࣪ЎⳌᇍ䏃ᕘⱘᯊ׭ˈϸϾ᭛ӊ㒱ᇍ ℷ⹂ݭ⊩˖ৃҹՓ⫼../img/photo.jpg ⱘⳌᇍ䏃ᕘᴹᅮԡ᭛ӊ 㒱ᇍ䏃ᕘᰃ˖c:/website/img/photo.jpgDŽ 䖭⾡ݭ⊩ᰃϡℷ⹂ⱘˈ೼ℸ՟ЁᇍѢ index.htm ᭛ӊᴹ䇈../../img/photo.jpg ᠔ҷ㸼ⱘ 䫭䇃ݭ⊩˖../../img/photo.jpg ೼ℸ՟Ё index.htm Ё㘨᥹ⱘ photo.jpg ᑨ䆹ᗢḋ㸼⼎ਸ਼˛ c:/website/web/img/photo.jpg c:/website/web/xz/index.htm ՟˖ ℷ⹂ݭ⊩˖ৃҹՓ⫼../../img/images/photo.jpg ⱘⳌᇍ䏃ᕘᴹᅮԡ᭛ӊ 㸼ⱘ㒱ᇍ䏃ᕘᰃ˖c:/website/web/img/images/photo.jpgDŽ 䖭⾡ݭ⊩ᰃϡℷ⹂ⱘˈ೼ℸ՟ЁᇍѢ index.htm ᭛ӊᴹ䇈../img/images/photo.jpg ᠔ҷ 䫭䇃ݭ⊩˖../img/images/photo.jpg ೼ℸ՟Ё index.htm Ё㘨᥹ⱘ photo.jpg ᑨ䆹ᗢḋ㸼⼎ਸ਼˛ c:/website/img/images/photo.jpg c:/website/web/xz/index.htm ՟˖ ℷ⹂ݭ⊩˖Փ⫼../img/photo.jpg ⱘⳌᇍ䏃ᕘᴹᅮԡ᭛ӊ ᇍ䏃ᕘᰃ˖c:/website/web/img/photo.jpgˈᰒ✊ϡヺড়㽕∖DŽ 䖭⾡ݭ⊩ᰃϡℷ⹂ⱘˈ೼ℸ՟ЁˈᇍѢ index.htm ᭛ӊᴹ䇈 img/photo.jpg ᠔ҷ㸼ⱘ㒱 䫭䇃ݭ⊩˖img/photo.jpg ೼ℸ՟Ё index.htm Ё㘨᥹ⱘ photo.jpg ᑨ䆹ᗢḋ㸼⼎ਸ਼˛ c:/website/img/photo.jpg c:/website/web/index.htm ՟˖ ݡⳟ޴Ͼ՟ᄤˈ⊼ᛣ᠔᳝՟ᄤЁ䛑ᰃ index.htm ᭛ӊЁ㘨᥹᳝ϔᓴ೒⠛ photo.jpgDŽ д䖛 dos ⱘ᳟টৃ㛑᳈ᆍᯧ⧚㾷˅ ঺໪៥ӀՓ⫼“../”ᴹ㸼⼎Ϟϔ㑻Ⳃᔩˈ“../../”㸼⼎ϞϞ㑻ⱘⳂᔩˈҹℸ㉏᥼DŽ˄ᄺ ࠄા䞠ˈা㽕ҪӀⱘⳌᇍ݇㋏≵᳝বˈህϡӮߎ䫭DŽ 䇒ූヨ䆄 index.htm Ё㘨᥹ⱘ photo.jpg ৃҹՓ⫼ img/photo.jpg ᴹᅮԡ᭛ӊˈ䙷Мϡ䆎ᇚ䖭ѯ᭛ӊᬒ ㄀ 13 义 ᔧ border ⱘؐ໻ѢㄝѢ  ᯊ 䆒㕂䖍Ḛᯣᱫ䚼ߚⱘ买㡆 ᠡ᳝⫼ DŽ ᔧ border ⱘؐ໻ѢㄝѢ  ᯊ
    䆒㕂䖍Ḛᯢ҂䚼ߚⱘ买㡆
    䆒㕂䖍Ḛⱘ买㡆DŽ DŽ
    䆒㕂䖍Ḛⱘᆑᑺˈ㢹ϡ䆒㕂ℸሲᗻˈ߭䖍Ḛᆑᑺ咬䅸Ў
    䆒㕂㸼Ḑⱘ㚠᱃㡆DŽ ሲᗻ ⫼䗨
    ...
    ᷛᖫᇍ⫼ᴹ߯ᓎϔϾ㸼ḐDŽᅗ᳝ҹϟሲᗻ˖ 1....
    ᱃੠ࠡ᱃买㡆ⱘ䆒㕂DŽᏠᳯᄺਬг㛑❳㒗Փ⫼㸼Ḑᴹࠊ԰㞾ᏅⱘЏ义DŽ ⱘ䕧ߎˈ㗠Ϩ䖬ৃҹӏᛣⱘ䖯㸠㚠ڣՓ⫼໮䞡㸼ḐˈЏ㽕ᰃ಴Ў㸼ḐϡԚৃҹ೎ᅮ᭛ᴀ៪೒ 㸼ḐᷛᖫᇍѢࠊ԰㔥义ᰃᕜ䞡㽕ⱘˈ៥Ꮰᳯᄺਬ㛑䆄ԣ䖭ϔ⚍ˈ⦄೼ᕜ໮ᕜ໮㔥义䛑ᰃ Ѩǃ㸼Ḑᷛᖫ 㣗՟ 1-5 ᬜᵰབ೒˖
    alt="㔥义ࠊ԰" WIDTH="120" HEIGHT="60">

    ᷛᖫⱘ㓐ড়⼎՟ڣ೒ <head> <html> ঞ∈ᑇ㒓ᷛᖫВ՟ڣ䇒ූヨ䆄 㣗՟ 1-5˖೒ ㄀ 14 义 ˅˄䆺㾕ϟ义 ՟ ˖㸼Ḑᷛᖫⱘ㓐ড়ᅲ՟ ⳟϔⳟϟ䖍ⱘ՟ᄤህᯢⱑҹϞᷛᖫᇍⱘ⫼⊩њDŽ <th></th>ᷛᖫᇍ⫼ᴹ䆒㕂㸼Ḑ༈ˈ䗮ᐌᰃ咥ԧሙЁ᭛ᄫDŽ 3.<th></th> ℶ㸼ḐḐᄤݙⱘݙᆍ㞾ࡼᮁ㸠DŽ 㔎ⳕؐЎ 1)˗nowrap ⽕ 㔎ⳕؐЎ 1)˗rowspan 䆒㕂ϔϾ㸼ḐḐᄤ䎼ऴⱘ㸠᭄ ᄤ䎼ऴⱘ᭄߫ ㋴ؐ៪ᘏᆑᑺⱘⱒߚ↨˗colspan 䆒㕂ϔϾ㸼ḐḐڣሲᗻDŽwidth ᰃḐᄤⱘᆑᑺˈऩԡ⫼㒱ᇍ middle(ሙЁ䯈ᇍ唤 ៪ bottom(䴴ᑩ䚼ᇍ唤 DŽ<td>݋᳝ widthǃcolspanǃrowspan ੠ nowrap center(ሙЁ ǃright(েᇍ唤 ˗㗠 valign ᰃൖⳈᇍ唤ᮍᓣˈপؐЎ top(䴴乊ッᇍ唤 ǃ ℸ໪ˈ<tr>䖬᳝ align ੠ valign ሲᗻDŽalign ᰃ∈ᑇᇍ唤ᮍᓣˈপؐЎ left(Ꮊᇍ唤 ǃ ᳔໪ሖ--> </table> </tr> </td> <td>㽕䕧ߎⱘ᭛ᴀা㛑ᬒ೼ℸ໘ ᄤ)--> 䖭䞠ᘏ݅߯ᓎњϝϾḐ ߯ᓎϔϾḐᄤ </td> <td>㽕䕧ߎⱘ᭛ᴀা㛑ᬒ೼ℸ໘ </td> <td>㽕䕧ߎⱘ᭛ᴀা㛑ᬒ೼ℸ໘ ߯ᓎϔ㸠--> <tr> ᳔໪ሖ߯ᓎϔϾ㸼Ḑ--> <table> ϟ᠔⼎˖ ेᠡ㛑໳ᰒ⼎ߎᴹ DŽ<table></table>ǃ<tr></tr>੠<td></td>ᷛᖫᇍⱘ݇㋏བ ᇍЁᠡ᳝ᬜ া᳝ᬒ೼<tr></tr>ᷛᖫᇍП䯈ᠡᰃ᳝ᬜⱘˈᄺਬᛇ㽕䕧ܹⱘ᭛ᴀгা᳝ᬒ೼<td></td>ᷛᖫ ᷛᖫᇍᠡᰃ᳝ᬜⱘ䇁⊩ˈ<td></td>ᷛᖫᇍ⫼ᴹ߯ᓎ㸼ḐЁϔ㸠Ёⱘ↣ϔϾḐᄤˈℸᷛᖫᇍг П䯈Փ⫼ˈ㗠೼ℸᷛᖫᇍП䯈ࡴܹ᭛ᴀᇚᰃ᮴⫼ⱘˈ಴Ў೼<tr></tr>П䯈া㛑㋻䎳<td></td> <tr></tr>ᷛᖫᇍ⫼ᴹ߯ᓎ㸼ḐЁⱘ↣ϔ㸠DŽℸᷛᖫᇍা㛑ᬒ೼<table></table>ᷛᖫᇍ 2.<tr>...</tr>, <td>...</td> བ Silver Ў䫊㡆) Փ⫼क݁䖯ࠊ RGB 买㡆ⷕ៪ Html 䇁㿔㒭ᅮⱘ买㡆ᐌ䞣ৡ ㋴ؐDŽ㗠᳝݇买㡆ⱘሲᗻڣҹϞ৘Ͼሲᗻৃҹ㒧ড়Փ⫼DŽ᳝݇ᆑᑺǃ໻ᇣⱘऩԡ⫼㒱ᇍ䇈ᯢ ↨DŽ ㋴ؐ៪ᘏᆑᑺⱘⱒߚڣ<table width=""> 䆒㕂㸼Ḑⱘᆑᑺˈऩԡ⫼㒱ᇍ <table cellpadding=""> 䆒㕂㸼ḐḐᄤ䖍ḚϢ݊ݙ䚼ݙᆍП䯈ぎ䯈ⱘ໻ᇣDŽ <table cellspacing=""> 䆒㕂㸼ḐḐᄤП䯈ぎ䯈ⱘ໻ᇣDŽ 䇒ූヨ䆄 ᠡ᳝⫼ DŽ ㄀ 15 义 ㄀ 16 义 䇒ූヨ䆄 ᬜᵰབϟ义೒˖ <html> <head> <title>㸼Ḑᷛᖫⱘ㓐ড়⼎՟

    ᛣ໻߽ 㣅Ḑ݄ 㽓⧁⠭
    AC ㉇݄ ԯ㔫Ӻ㧼 ᳐㘨 㒑वᮃᇨ Ꮘา㔫䙷 ⱛᆊ⼒Ӯ
    ᇸ᭛೒ᮃ ḥ᱂໮߽Ѯ ߽⠽⌺ 䰓⬇㒇 ⱛᆊ偀ᖋ䞠 ……
    ᢝ唤༹ ೑䰙㉇݄ ߛᇨ㽓 ㉇ᖋᇨᮃ෵ 偀ᖋ䞠ゲᡔ ……
    ǃ⫼Ҟ໽᠔䆆ⱘݙᆍᅠ៤ http://www.phpedu.org 佪义ⱘ䚼ߚḚᶊ䆒䅵 ǃ ݭߎᅲ⦄ϟ೒ᬜᵰⱘ HTML ҷⷕ˖ 䇒ූ㒗д 䇒ූヨ䆄 ㄀ 17 义 ⊼ᛣ˖href ሲᗻ䌟ⱘؐ㢹ᰃᷛㅒⱘৡᄫˈᖙ乏೼ᷛㅒৡࠡ䖍ࡴϔϾ“#”োDŽ г⿄ПЎ䫮⚍DŽ ⚍ߏℸ໘ᇚՓ⌣㾜఼䏇ࠄĀᷛㅒৡā໘ˈ೼៥Ӏⱘ᮹ᐌ䖤⫼Ёˈ ህ㽕㓪ݭབϟҷⷕ˖ 㽕ᡒࠄᷛㅒ᠔೼ഄˈህᖙ乏Փ⫼ᷛᖫᇍDŽ՟བ㽕ᡒࠄĀᷛㅒৡā䖭Ͼᷛㅒˈ  ߯ᓎᷛㅒᰃЎњ೼Html᭛ḷЁ߯ᓎϔѯ䫒᥹ˈҹ֓㛑໳ᡒࠄৠϔ᭛ḷЁⱘ᳝ᷛㅒⱘഄᮍDŽ ℸ໘߯ᓎњϔϾᷛㅒ гेᰃᷛㅒৡˈ՟བ˖ ϔϾ䆄ো ˈሲᗻ name ᰃϡৃ㔎ᇥⱘˈᅗⱘؐخे ᷛᖫᇍ⫼ᴹ೼ Html ᭛ḷЁ߯ᓎϔϾᷛㅒ ᷛᖫᇍ㽕㒧ড়ᷛᖫᇍՓ⫼ᠡ᳝ᬜᵰDŽ 2. 䖭ᰃ៥ⱘ㔥キ ߏ䫒᥹ৢᇚӮᠧᓔϔϾᮄⱘ⌣㾜఼にষᴹ⌣㾜ᮄⱘ Html ᭛ḷDŽ՟བ˖ 䫒᥹Пৢᇚ೼ॳᴹⱘ⌣㾜఼にষЁ⌣㾜ᮄⱘ Html ᭛ḷˈ㢹 target ⱘؐㄝѢ“_blank”ˈ⚍ ೼䆆Ḛᶊᷛᖫᯊ԰䆺㒚ⱘ䇈ᯢˈ䖭䞠ᄺਬা㽕ⶹ䘧བᵰϡՓ⫼ target ሲᗻˈᔧ⌣㾜㗙⚍ߏњ ℸ໪ˈ䖬݋᳝ target ሲᗻˈℸሲᗻ⫼ᴹᣛᯢ⌣㾜ⱘⳂᷛḚᶊˈ៥Ӏᇚ থ䚂ӊ㒭៥Ӏ े E-Mail ഄഔ ˈ՟བ˖ 䚂ӊⱘ䫒᥹ˈmailto:ৢ䖍㋻䎳ᛇ㽕ࠊࡼথ䗕ⱘ⬉ᄤ䚂ӊⱘഄഔ 䇁⊩Ўˈ䖭ህ߯ᓎњϔϾ㞾ࡼথ䗕⬉ᄤˈމᇍѢ㄀Ѡ⾡ᚙ 䖭ᰃ៥ⱘ㔥キ ߯ᓎϔϾ䍙᭛ᴀ䫒᥹њˈ՟བ˖ 䇁⊩Ўˈ䖭ህ㛑ˈމmailto:ᔶᓣˈेথ䗕 E-Mail ᔶᓣDŽᇍѢ㄀ϔ⾡ᚙ ࡴܹᷛᖫ DŽhref ⱘؐৃҹᰃ URL ᔶᓣˈे㔥ഔ៪Ⳍᇍ䏃ᕘˈгৃҹᰃेڣ᥹೒ 䫒 ڣᴀᷛᖫᇍⱘሲᗻhrefᰃ᮴䆎བԩϡৃ㔎ᇥⱘˈᷛᖫᇍП䯈ࡴܹ䳔㽕䫒᥹ⱘ᭛ᴀ៪೒ 1. 㒰ᗻDŽ 䫒᥹ᰃ Html 䇁㿔ⱘϔ໻⡍㡆ˈℷ಴Ў᳝њᅗˈ៥Ӏᇍݙᆍⱘ⌣㾜ᠡ㛑໳݋᳝♉⌏ᗻ੠㔥 ݁ǃ䫒᥹ᷛᖫ 䇒ූヨ䆄 ԛ֝ඟ ㄀ 18 义 ˖ϟ䖍ᰃϔϾ㓐ড়⼎՟ ᇍˈ✊ৢᠡৃҹՓ⫼៥Ӏ೼ᬭ⿟ϗҹࠡ䆆䖛ⱘӏԩᷛᖫDŽ ㋻䎳ᷛᖫܜᙃDŽ೼ℸᷛᖫᇍП䯈ֵڣѯϡᬃᣕḚᶊⱘ⌣㾜఼Ёᰒ⼎᭛ᴀ៪೒ ᷛᖫᇍгᰃᬒ೼ᷛᖫᇍП䯈ˈ⫼ᴹ೼䙷 3. ϔϾḚᶊⱘ໻ᇣDŽ 㽕߭㞾ࡼϡᰒ⼎ DŽnoresize ሲᗻⳈ᥹ࡴܹᷛᖫЁेৃՓ⫼ˈϡ䳔䌟ؐˈᅗ⫼ᴹ⽕ℶ⫼᠋䇗ᭈ ࡼ䕈ˈপؐৃҹᰃ“yes”(ᰒ⼎ ǃ“no”(ϡᰒ⼎ ៪“auto”(㢹䳔㽕߭Ӯ㞾ࡼᰒ⼎ϡ䳔 ℸ໪ˈᷛᖫ䖬᳝ scrolling ੠ noresize ሲᗻˈscrolling ⫼ᴹᣛᅮᰃ৺ᰒ⼎⒮ ᓎゟ㔥キⱘⳂᔩˈࡴܹϔ㋏߫䫒᥹ˈᔧ⚍ߏ䫒᥹ҹৢ೼঺ϔϾḚᶊЁᰒ⼎㹿䫒᥹ⱘ Html ᭛ӊDŽ 䳔㽕䫒᥹ⱘ᭛ᴀDŽ䖭ḋϔᴹˈህৃҹ೼ϔϾḚᶊЁ ᳝ϔϾ䫒᥹ˈ೼⚍ߏњ䖭Ͼ䫒᥹ৢˈ᭛ӊ new.htm ᇚ㽕ᰒ⼎೼ৡЎ main ⱘḚᶊЁˈ߭ҷⷕЎ ḚᶊЁᰒ⼎ⱘ Html ᭛ӊৡᰃ jc.htmˈ߭ҷⷕᰃˈᔧᄺਬ ᗻ⫼ᴹᣛᅮ䫒᥹ⱘ Html ᭛ӊᇚᰒ⼎೼ાϔϾḚᶊЁDŽ՟བᅮНњϔϾḚᶊˈৡᄫᰃ mainˈ೼ ᰃℸḚᶊⱘৡᄫˈ䖭Ͼৡᄫᰃ⫼ᴹկ䍙᭛ᴀ䫒᥹ᷛᖫЁⱘ target ሲ ᣀ㔥㒰䏃ᕘेⳌᇍ䏃ᕘ៪㔥ഔ ˈ⌣㾜఼ᇚӮ೼ℸḚᶊЁᰒ⼎ src ᣛᅮⱘ Html ᭛ӊ˗name ࣙ ᷛᖫ݋᳝ src ੠ name ሲᗻˈ䖭ϸϾሲᗻ䛑ᰃᖙ乏䌟ؐⱘDŽsrc ᰃℸḚᶊⱘ⑤ Html ᭛ӊৡ ᷛᖫᬒ೼П䯈ˈ⫼ᴹᅮНᶤϔϾ݋ԧⱘḚᶊDŽ 2. েˈ✊ৢҢϞࠄϟᥦ߫DŽ ᯳ো߭ᇚ࠽ϟⱘ᳾㹿䇈ᯢⱘぎ䯈ᑇഛߚ䜡DŽৠᯊˈ᠔᳝ⱘḚᶊᣝ✻ rows ੠ cols ⱘؐҢᎺࠄ ㋴ؐ៪᯳ো(“*”)ˈ݊Ё᯳োҷ㸼䙷ѯ᳾㹿䇈ᯢⱘぎ䯈ˈབᵰৠϔϾሲᗻЁߎ⦄໮Ͼڣ㒱ᇍ ⱘ㸠ᅮԡˈ㗠 cols ⫼ᴹ㾘ᅮЏ᭛ḷЁ৘ϾḚᶊⱘ߫ᅮԡDŽ䖭ϸϾሲᗻⱘপؐৃҹᰃⱒߚ᭄ǃ ᷛᖫᇍгህ≵᳝䍋ࠄӏԩ԰⫼њDŽrows ⫼ᴹ㾘ᅮЏ᭛ḷЁ৘ϾḚᶊ 乏䗝ᢽϔϾˈ৺߭⌣㾜఼াᰒ⼎㄀ϔϾᅮНⱘḚᶊˈ࠽ϟⱘϔὖϡㅵˈ ϾḚᶊᰃབԩᥦ߫ⱘDŽᅗ݋᳝ rows ੠ cols ሲᗻˈՓ⫼ᷛᖫᯊ䖭ϸϾሲᗻ㟇ᇥᖙ ҹጠ೼݊ҪḚᶊ᭛ḷЁˈᑊϨৃҹጠ༫Փ⫼DŽℸᷛᖫᇍ⫼ᴹᅮНЏ᭛ḷЁ᳝޴ϾḚᶊᑊϨ৘ ᷛᖫᇍᬒ೼ḚᶊⱘЏ᭛ḷⱘᷛᖫᇍⱘ໪䖍ˈгৃ 1. ЁDŽ ेৃկ䗝ᢽⱘ䫒᥹ ˈ✊ৢᇚ Html ᭛ӊᰒ⼎೼঺ϔϾḚᶊ Փ⫼ᮍ⊩ᰃ೼ϔϾḚᶊЁᬒ㕂Ⳃᔩ ៥⿄ᅗЎЏ᭛ḷ DŽḚᶊ䗮ᐌⱘ Ͼ᳔໻ⱘḚᶊˈгेᰃϔϾࣙ৿໮Ͼ Html ᭛ḷⱘ Html ᭛ӊ Ͼ Html ᭛ӊऴ᥂ϔϾḚᶊˈ㗠໮ϾḚᶊৃҹৠᯊᰒ⼎೼ৠϔϾ⌣㾜఼にষЁˈᅗӀ㒘៤њϔ Ḛᶊᰃ⬅㣅᭛ Frame 㗏䆥䖛ᴹⱘˈᅗৃҹ⫼ᴹ৥⌣㾜఼にষЁ㺙䕑໮Ͼ Html ᭛ӊDŽे↣ ϗǃḚᶊᷛᖫ 䇒ූヨ䆄 ㄀ 19 义 ㄀ 20 义 䇒ූヨ䆄 Frame.html menu.htm page1.htm Ḛᶊᷛᖫⱘ㓐ড়⼎՟ <body> <p>ᇍϡ䍋ˈᄺਬⱘ⌣㾜఼ϡᬃᣕĀḚᶊāʽ</p> </body> 䖭ᰃ㄀ϔ义

    䖭ᰃ㄀ϔ义ʽ

    Ⳃᔩ

    Ⳃᔩ

    䫒᥹ࠄ㄀ϔ义

    䫒᥹ࠄ㄀Ѡ义

    ㄀ 21 义 䇒ූヨ䆄 page2.htm 䖤㸠 frame.html ৢⱘᬜᵰབ೒˖ ⚍ߏĀ䫒᥹ࠄ㄀Ѡ义āৢⱘᬜᵰ˖ ܿǃ㸼ऩᷛᖫ ㄀Ѡ义

    䖭ᰃ㄀Ѡ义ʽ

    ⱘ ;ǃ< തᷛϔ䍋Ӵ䗕㒭᳡ࡵ఼ ⚍ߏৢ㸼ऩЁⱘֵᙃ੠⚍ߏԡ㕂 ⱘ⑤᭛ӊৡ⬅ src ሲᗻᣛᅮ⫼᠋ ڣᴹҷ᳓ Submit ᣝ䪂೒ڣՓ⫼೒ src="URL"> 䱤㮣ऎඳ⫼᠋ϡ㛑೼݊Ё䕧ܹ⫼ 䖍⼎՟ЁՓ⫼њϝϾ໡䗝Ḛ 㕂䆹໡䗝Ḛ㔎ⳕᯊᰃ৺㹿䗝Ёে ϔϾ໡䗝Ḛ,checked ሲᗻ⫼ᴹ䆒 checked> type="CHECKBOX" ᇚ㸼ऩݙᆍܼ䚼⏙䰸䞡ᮄ฿ݭⱘ ᇚ㸼ऩݙᆍᦤѸ㒭᳡ࡵ఼ⱘᣝ䪂 ᄫヺ᭄ ऎඳᰒ⼎ⱘሎᇌ໻ᇣϢ䕧ܹⱘ᳔໻ maxlength ሲᗻ⫼ᴹᅮНℸ⾡䕧ܹ ऩ㸠ⱘ᭛ᴀ䕧ܹऎඳ,size Ϣ size="" maxlength=""> ᷛᖫᇍП䯈DŽᷛᖫЁ݅ᦤկњܿ⾡㉏ൟⱘ䕧ܹऎඳˈ݋ԧ ᷛᖫ⫼ᴹᅮНϔϾ⫼᠋䕧ܹऎˈ⫼᠋ৃ೼݊Ё䕧ֵܹᙃDŽℸᷛᖫᖙ乏ᬒ 2. GET ᮍᓣⱘ໻ⱘ໮DŽtargeW ሲᗻ⫼ᴹᣛᅮⳂᷛにষ៪ⳂᷛḚᶊDŽ ᮍᓣϢ GET ᮍᓣⳌডˈᅗᰃᔧࠡⱘ Html ᭛ḷᡞ᭄᥂Ӵ䗕㒭໘⧚⿟ᑣˈӴ䗕ⱘ᭄᥂䞣㽕↨Փ⫼ Html ᭛ḷЁ㦋প᭄᥂ˈ✊㗠䖭⾡ᮍᓣӴ䗕ⱘ᭄᥂䞣ᰃ᳝᠔䰤ࠊⱘˈϔ㠀䰤ࠊ೼ 1KB ҹϟDŽPOST Ң㸼ऩЁ㦋ᕫֵᙃⱘᮍᓣˈৃপؐЎ GET ੠ POST ⱘ݊ЁϔϾDŽGET ᮍᓣᰃ໘⧚⿟ᑣҢᔧࠡ http://www.phpedu.org/ϞⱘৡЎ counter.cgi ⱘ CGI ⿟ᑣDŽmethod ሲᗻ⫼ᴹᅮН໘⧚⿟ᑣ action="http://www.phpedu.org/counter.cgi">ˈᔧ⫼᠋ᦤѸ㸼ऩᯊˈ᳡ࡵ఼ᇚᠻ㸠㔥ഔ 㔥ഔ៪Ⳍᇍ䏃ᕘ ˈབ˖ᷛᖫ݋᳝ actionǃmethod ੠ target ሲᗻDŽaction ⱘؐ
    ᷛᖫᇍ⫼ᴹ߯ᓎϔϾ㸼ऩˈгेᅮН㸼ऩⱘᓔྟ੠㒧ᴳԡ㕂ˈ೼ᷛᖫᇍП 1.
    া䆆ᗢḋՓ⫼ Html ᷛᖫᴹ䆒䅵㸼ऩDŽ ໘⧚ৢˈݡᇚ⫼᠋᠔䳔ֵᙃӴ䗕ಲᅶ᠋ッⱘ⌣㾜఼Ϟˈ䖭ḋ㔥义ህ݋᳝њѸѦᗻDŽ䖭䞠៥Ӏ 㸼ऩⱘݙᆍህҢᅶ᠋ッⱘ⌣㾜఼Ӵ䗕ࠄ᳡ࡵ఼Ϟˈ㒣䖛᳡ࡵ఼Ϟⱘ ASP ៪ CGI ㄝ໘⧚⿟ᑣ ᦤѸ(submit)᪡԰ˈѢᰃخ㛑DŽϔ㠀ᰃᇚ㸼ऩ䆒䅵೼ϔϾ Html ᭛ḷЁˈᔧ⫼᠋฿ݭᅠֵᙃৢ 䇒ූヨ䆄 㸼ऩ೼ Web 㔥义Ё⫼ᴹ㒭䆓䯂㗙฿ݭֵᙃˈҢ㗠㛑㦋ᕫ⫼᠋ֵᙃˈՓ㔥义݋᳝ѸѦⱘࡳ ㄀ 22 义