星期一, 11月 14, 2005

Lab Form and Action

"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 Nvu HTML editor.
3. Open a new empty HTML file.
4. Paste the search box into this new file.

5. Add a Form to this search box.

6. Set Action="http://google.com/search" and name of Form as "f" and method as "get"
(See Hint if it does not work.)
7. Run your HTML by Firefox. What do you get?

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

7 則留言:

zombiecat 提到...

9326243 蕭偉豪 電子二乙

用post查詢 會出現501 not implemented
而用get則可以查詢

匿名 提到...

9326149 朱衍印 電子二甲
使用post出現Not Implemented
使用get可正常查詢

MIMI 提到...

9228213 電機三乙 喻俊嘉
可以搜尋到但是版面都怪怪的沒有圖片

winni 提到...

9326230 電子二乙 張惠雯
終於弄好了~~~使用get時,可正常查詢;但使用post會出現Not Implemented

Aclose 提到...

9326311 電子二丙 余幸娟
method:get→正常搜尋
method:post→無法搜尋

匿名 提到...

ok啦~~
電子二丙 9326301 許哲綸

匿名 提到...

電子二丙 9326340 鄭宇利
好ㄌ