星期一, 12月 03, 2012

Lab 28 Lab Form and Action


  • Dynamic pages, content generated by server-side programs.
  • CGI, Common Gateway Interface, for sending requests to server-side programs.


static page
Ex:
http://www.google.com/

dynamic page
Ex:
http://www.cna.com.tw/

URL that sends a request by CGI
Ex:
http://maps.google.com/maps?q=24.9586,+121.2411

Purpose of lab: 
Learn how to use Form to invoke a remote service through CGI.

1. Copy the search box of this search page,
inlcuding radio buttons, text input, and submit button.
2. Open your KompoZer HTML editor.
3. Open a new empty HTML file.
4. Paste the search box into this new file.

5. Use KompoZer to add a Form to this search box. Do not hand code the HTML. Just fill the blank in the Form dialog.

6. In the form dialog, set Action="http://google.com/search" and name of Form as "f" and method as "get"
(See Hint if it does not work.)
7. Save your file on your computer. Run your HTML by Firefox. What do you get?

8. Set method as "post"
9. Run your HTML by Firefox. What do you get?

Q:請描述至少一個你做這個lab所遇到的問題,並且你是如何解決這個問題的。

19 則留言:

Unknown 提到...

9826339 電子四丙 莊宗諭

s9826249 提到...

電子四乙 9826249 李哲安

s9826251 提到...

9826251電子四乙王致堯

鍾岳翰 提到...

9826245 電子四乙 鍾岳翰

Unknown 提到...

9920117電子三乙 簡曉帆

竹煇 提到...

9826128電子四甲顏竹煇

王正杰 提到...

9826232王正杰

Unknown 提到...

電子四乙 9826209 沈睦然

Benny_N 提到...

9826318電子四丙簡國恩

Unknown 提到...

9926266電子三乙蔡忠峻

葉倢君 提到...

電子四丙9826310葉倢君

章響 提到...

9926250電子三乙洪章响

s9826225 提到...

電子四乙9826225戴光佑

Unknown 提到...

9926242 鍾杰澔

Jeremiah Hu 提到...

9920136 電子三甲 胡翊軒

Unknown 提到...

9920112 黃采萱

Unknown 提到...

財法四甲 趙俐雯 9845156 lab28

大中翔 提到...

電子四乙 9826262 羅彥翔

9826302 電子四丙 李睿 提到...

9826302 電死四丙 李睿