📄 readme
字号:
This directory contains a CGI example program that handles multiple forms,and keeps state information in hidden fields. The program can respond ina number of different ways, depending on the query: no query: send back an initial form (login form) a login request: send back a pizza order form an order request: send back a receipt for pizza ordered.The program determines which kind of request is made by looking fora field named "formname" which can have the values: "order" : means this is an order request "login" : means this is a login requestIf no field named "formname" is found the program assumes the user wantsto log in, so it sends back the login form.Much of the HTML that is generated by the CGI program is read from files.This makes it possible to change the look of the site without reompiling.Some of the HTML is generated by the program itself...Files;logo - the Netprog Pizza logo that shows up on the top of all pages.lpizza.gif, rpizza.gif: some graphicsloginform.tmpl - the HTML form a user uses to log in to the pizza server.orderform.tmpl - most of the HTMLform for ordering a pizza.baduser, nicetry - HTML error messages.passwords: a file that contains name and password for all the customers.np_pizza.c: C source for the CGI program.cgilib.[ch]: CGI support routines.To try out this CGI program - point your browser to np_pizza.cgi (theexecutable) with no query string.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -