2022年web技術(shù)實(shí)驗(yàn)報(bào)告_共8頁(yè)_第1頁(yè)
2022年web技術(shù)實(shí)驗(yàn)報(bào)告_共8頁(yè)_第2頁(yè)
2022年web技術(shù)實(shí)驗(yàn)報(bào)告_共8頁(yè)_第3頁(yè)
2022年web技術(shù)實(shí)驗(yàn)報(bào)告_共8頁(yè)_第4頁(yè)
2022年web技術(shù)實(shí)驗(yàn)報(bào)告_共8頁(yè)_第5頁(yè)
已閱讀5頁(yè),還剩3頁(yè)未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、實(shí) 驗(yàn) 報(bào) 告( 2014 / 2015 學(xué)年 第 2 學(xué)期)課程名稱web 技術(shù)實(shí)驗(yàn)名稱web服務(wù)端腳本編寫實(shí)驗(yàn)時(shí)間2015年05月13日指導(dǎo)單位南京郵電大學(xué)計(jì)算機(jī)學(xué)院指導(dǎo)教師韓京宇學(xué)生姓名陶飛班級(jí)學(xué)號(hào)b13040932學(xué)院 (系)計(jì)算機(jī)軟件專業(yè)軟件工程精品學(xué)習(xí)資料 可選擇p d f - - - - - - - - - - - - - - 第 1 頁(yè),共 8 頁(yè) - - - - - - - - -精品學(xué)習(xí)資料 可選擇p d f - - - - - - - - - - - - - - 第 1 頁(yè),共 8 頁(yè) - - - - - - - - -0實(shí) 驗(yàn) 報(bào) 告實(shí)驗(yàn)名稱web 服務(wù)端腳本編寫指導(dǎo)教

2、師韓京宇實(shí)驗(yàn)類型上機(jī)實(shí)驗(yàn)學(xué)時(shí)2實(shí)驗(yàn)時(shí)間2015-05-131、實(shí)驗(yàn)?zāi)康模?)通過上機(jī)實(shí)踐,熟悉apache 服務(wù)器的安裝和使用方法。(2)掌握 php 腳本語(yǔ)言,熟練運(yùn)用php 語(yǔ)言進(jìn)行服務(wù)器端編程。2、實(shí)驗(yàn)環(huán)境硬件:微機(jī)軟件: apache,php 模塊編輯器: vim 或者 gedit3、實(shí)驗(yàn)內(nèi)容1.顯示一個(gè)圖書售賣界面,主要包括以下內(nèi)容(1)html 標(biāo)題“welcom to book seller” 。(2)頁(yè)面內(nèi)容第一行黑體顯示“you are welcome” 。(3)標(biāo)簽提示 “please input your name ” ,并創(chuàng)建輸入框。(4)標(biāo)簽提示 “please in

3、put your address ”,并創(chuàng)建輸入框。(5)標(biāo)簽提示 “please input your zip”,并創(chuàng)建輸入框。(6)黑體顯示 “please fill in the quantity field of the following form”.(7)表格分成四列,分別是“boook”,“publisher”,“price” ,“quantity”,其中包含信息如表格所示(8)quantity 采用輸入框輸入。(9)顯示 “payment method”精品學(xué)習(xí)資料 可選擇p d f - - - - - - - - - - - - - - 第 2 頁(yè),共 8 頁(yè) - - - -

4、 - - - - -精品學(xué)習(xí)資料 可選擇p d f - - - - - - - - - - - - - - 第 2 頁(yè),共 8 頁(yè) - - - - - - - - -1(10)用單選按鈕顯示三個(gè)支付方式選項(xiàng)“cash”,“cheque” , “credit card” 。(11)顯示兩個(gè)標(biāo)準(zhǔn)按鈕, “submit”按鈕和 “reset”按鈕。2 當(dāng)用戶輸完各個(gè)內(nèi)容并按下“submit”按鈕后,通過腳本生成新的界面。其中包含以下內(nèi)容(1)customer name(2)customer address(3)customer zip(4)以表格形式顯示訂購(gòu)圖書信息,包括四列“book” , “pu

5、blisher” ,“price”,“total cost”,其中 total 通過腳本動(dòng)態(tài)計(jì)算生成。未購(gòu)買的圖書不顯示。(5)計(jì)算并顯示 “(名字) has bought (數(shù)量) books ” 。(6)計(jì)算并顯示 “(名字) paid(總額)” 。(7)根據(jù)用戶的選擇方式顯示“paid by (支付方式 )” 。3 將用戶購(gòu)買信息存入到文件當(dāng)中,每個(gè)客戶包含三行信息,即2 中的(5) (6) (7)三句話。4 如果用戶按的是 “重置按鈕 ” ,則清楚所有的輸入信息。精品學(xué)習(xí)資料 可選擇p d f - - - - - - - - - - - - - - 第 3 頁(yè),共 8 頁(yè) - - -

6、- - - - - -精品學(xué)習(xí)資料 可選擇p d f - - - - - - - - - - - - - - 第 3 頁(yè),共 8 頁(yè) - - - - - - - - -2四丶實(shí)驗(yàn)過程welcome to book selleryou are wlcomeplease input your nameplease input your addressplease input your zipplease fill in the quantity field of the following formbookpublisherpricequantityweb technologyspringer p

7、ress$5.0mathematics精品學(xué)習(xí)資料 可選擇p d f - - - - - - - - - - - - - - 第 4 頁(yè),共 8 頁(yè) - - - - - - - - -精品學(xué)習(xí)資料 可選擇p d f - - - - - - - - - - - - - - 第 4 頁(yè),共 8 頁(yè) - - - - - - - - -3acm press$6.2principle of osscience press$10theory of matrixhigh education press$7.8payment methodcashchequecredit card精品學(xué)習(xí)資料 可選擇p d f

8、 - - - - - - - - - - - - - - 第 5 頁(yè),共 8 頁(yè) - - - - - - - - -精品學(xué)習(xí)資料 可選擇p d f - - - - - - - - - - - - - - 第 5 頁(yè),共 8 頁(yè) - - - - - - - - -4real roots of a quadratic equation!-var a = prompt(what is the value of an,);var b = prompt(what is the value of bn,);var c = prompt(what is the value of cn,);var d = b

9、*b-4.0*a*c;if(d0)document.write(error input!);elsevar root_part=math.sqrt(d);var denom=2.0*a;var root1=(-b + root_part)/denom;var root2=(-b - root_part)/denom;document.write(the first root is:,root1,);document.write(the second root is:,root2,);/-process the qwe.html formcustormer:?phpprint($name$str

10、eet$city);? order informationbookpublisherpricetotal cost web tecohnologyspringer press$5.0 mathematicsacm press$6.2 principle of osscience press$10 theory of matrixhigh eduction press$7.8精品學(xué)習(xí)資料 可選擇p d f - - - - - - - - - - - - - - 第 7 頁(yè),共 8 頁(yè) - - - - - - - - -精品學(xué)習(xí)資料 可選擇p d f - - - - - - - - - - - - - - 第 7 頁(yè),共 8 頁(yè) - - - - - - - - -6 ?php print($name has bought $total_items books); printf($name paid $ %5.2f,$total_price);print(paid by $payment);?五丶實(shí)驗(yàn)結(jié)論通過該實(shí)驗(yàn),我對(duì)php腳本語(yǔ)言有了更近的認(rèn)識(shí),能基本熟練運(yùn)用 php語(yǔ)言進(jìn)行服務(wù)器端的編程,開始對(duì)html 中數(shù)據(jù)的

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論