星期日, 3月 27, 2005

Lab How to use Form to invoke a remote service through CGI.

"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?

6 則留言:

尼克 提到...

9026106 have done 1~9

yk 提到...

s9126107

GET =>可以work
POST =>出現 Not Implemented
The server is unable to process your request.

zekebest 提到...

s9045118 have done 1-9

GigiDa 提到...

s9126218 did all

clarkboy 提到...

s9126359 did 1~9
get:可以
post: The server is unable to process your request.

匿名 提到...

s9026161 done all