- 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
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 則留言:
9820101陳世剛
9844108 黃慧雯 LAB33
9820106 蔡旻翰 LAB33
9844123 陳皓文 Lab33
9826217 王冠中 Lab33
9826374 江德鄰 Lab33
9826301 羅仁宏 LAB33
曹雅婷LAB33
9826321 鄭勝鴻 電子三丙
9820125 郭珮怡
9826304江承庭lab33
9826364林昆輝
9826347 王得睿 LAB33
9842213 張心蘋
9824238姚彥如lab33
9826340 林映丞
9826229 粘御章
電子三乙9826267林子傑Lab 33 Lab Form and Action
9826203 謝承儒
9842251鄭宜欣
9826353廖雅竹LAB33
9826305吳翼丞
9826241許翊筠lab33
9826218方長文
9826201唐偉慎LAB33
9826250林揚祐
9826321 鄭勝鴻 電子三丙
張貼留言