Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lesson 18. CGI Setup Browser Server CGI Scripts/ Program Database Request Http reply.

Similar presentations


Presentation on theme: "Lesson 18. CGI Setup Browser Server CGI Scripts/ Program Database Request Http reply."— Presentation transcript:

1 Lesson 18

2 CGI Setup Browser Server CGI Scripts/ Program Database Request Http reply

3

4 Click here to view the record of your previous transactions List of IT Books for sale

5 Perl example – hello2.cgi print " \n"; print " IT Books \n"; print " Description of available books "; &SetOracle; &RunSQL("Select * from ITBOOKS"); &StopOracle; print " \n";

6 Select author,publisher from ITBOOKS where coursename=‘e-commerce’ Select Statement

7

8 To Register Please Enter The Following Information: Name: Address: Password: Email:

9 Insert Statement INSERT INTO Register(Name,Address,Password,Email) VALUES(Request.form("Name"), Request.form("Address"), Request.form("Password"), Request.form("Email"))

10 Server Side Scripts Active Server Pages (.asp) Java Server pages (.jsp) Hypertext Preprocessor (.php)

11 Intrinsic Objects of ASP Response Object Request Object Server Object Application Object Session Object ObjectContext Object ASPError Object

12 <%Dim lastname Dim firstname Dim myage lastname="Ali" firstname="Imran" myage=30 %> It is easy My name is and my age is

13 … Name: Login: …

14

15 <%Dim loginname Dim name loginname=Request.Form("userlogin") name=Request.Form("username") %> It is easy My name is and I am going to use as my login regcheck.asp

16 Test1 <% Dim myString="ecommerce" %> =#12:00 AM# and Time Good Morning Pakistan Hello Everyone <% Dim j For j=1 to 3 response.write myString response.write " " Next %>

17


Download ppt "Lesson 18. CGI Setup Browser Server CGI Scripts/ Program Database Request Http reply."

Similar presentations


Ads by Google