星期日, 5月 20, 2012

Lab 33 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
"logic will get you from A to B - imagination will take you anywhere"

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?

28 則留言:

jimmy 提到...

9820101陳世剛

Amazon Huang 提到...

9844108 黃慧雯 LAB33

Andrew Chen 提到...
作者已經移除這則留言。
西瓜 提到...

9820106 蔡旻翰 LAB33

Andrew Chen 提到...

9844123 陳皓文 Lab33

HIHIHIHIHI 提到...

9826217 王冠中 Lab33

leo 提到...

9826374 江德鄰 Lab33

snoopy 提到...

9826301 羅仁宏 LAB33

雅婷的部落格 提到...

曹雅婷LAB33

s9826321 提到...

9826321 鄭勝鴻 電子三丙

郭珮怡 提到...

9820125 郭珮怡

Chen-Ting 提到...

9826304江承庭lab33

OSCAR 提到...

9826364林昆輝

王得睿 提到...

9826347 王得睿 LAB33

Hsin ping 提到...

9842213 張心蘋

s9824238姚彥如 提到...

9824238姚彥如lab33

yingcheng 提到...

9826340 林映丞

粘御章 提到...

9826229 粘御章

林子傑 提到...

電子三乙9826267林子傑Lab 33 Lab Form and Action

謝承儒 提到...

9826203 謝承儒

Yi-sin 提到...

9842251鄭宜欣

廖雅竹 提到...

9826353廖雅竹LAB33

無益丞 提到...

9826305吳翼丞

翊筠的部落格 提到...

9826241許翊筠lab33

方長文 提到...

9826218方長文

唐偉慎 提到...

9826201唐偉慎LAB33

s9826250 提到...

9826250林揚祐

s9826321 提到...

9826321 鄭勝鴻 電子三丙