2. Create a directory named TEMP in your C drive. Create a subdirectory in TEMP named after your name.

Size: px
Start display at page:

Download "2. Create a directory named TEMP in your C drive. Create a subdirectory in TEMP named after your name."

Transcription

1 PRACTICE PROBLEMS Initial Set up 1. Create GROUPLOG database tables in MSACCESS for entry of your group meetings log with the following attributes: GROUPMEMBER (id, lastname, firstname, address, groupno) PARTICIPANT ( meetingno, id) MEETINGDATE (groupno, meetingno, date, starttime, endtime, description) The names of the database, entities (tables) and attributes (fields) in your database must be same as indicated in above. Enter records for 5 meetings of each group. There should be 5 groups with each group having 3-5 members. You can use the information from your group meetings. Create a directory with your user name in your account in the csweb server and a subdirectory exercises1 in it. Store the database in your directory. 2. Create a directory named TEMP in your C drive. Create a subdirectory in TEMP named after your name. HTML and ASP simple exercises. (Hint: Reading of text boxes, check boxes and radio buttons may be found in example included in lecture slides 2 (ASP).) 1. a. Write HTML code to display the following form on your screen. Store in your directory in C drive and make sure that it functions. Make necessary modifications in the HTML code so that when the TEST button is clicked the content of the form is submitted to an ASP program in your exercises1 directory on the csweb server. Test What I Entered My First Text: My secondnd Text: Hello, World Hello, World TEST b. Write an ASP code, which can read the text entered in the text box in the above example. It then writes back the text to your screen, when activated by clicking the TEST button on your screen, with two alert prompt as follows. Store it in your exercise1 directory (HTASPoncsweb1p1.asp). Example: Your First Text is : My best wishes. (assuming that you entered my best wishes in the first text box) Your Second Text is : Hi, There. (assuming that you entered Hi, There in the second text box) c. Write an ASP code, which can read the text entered in the text box in the above example. It then writes back as a text string to your screen, when activated by clicking the TEST button on your screen, with a prompt as follows. Store it in your exercise1 directory (HTASPoncsweb1p2.asp). Example: Your First Text is : My best wishes. (assuming that you entered my best wishes in the first text box) Your Second Text is : Hi, There. (assuming that you entered Hi, There in the second text box) 2. a. Write HTML code to display the following form on your screen. Store in your directory in C drive and make sure that it functions. Make necessary modifications in the HTML code so that when the TEST button is clicked the content of the form is submitted to an ASP program in your exercises1 directory on the csweb server. Test What I Clicked My First Check Box: My Second Check Box: TEST 1

2 b. Write an ASP code, which can read the status of check boxes in the above example. It then writes back the details of your selection on your screen, when activated by clicking the TEST button on your screen. Store it in your exercise1 directory (HTASPoncsweb2p1.asp). Example: Any one or both of the following statements appear depending on your selection of the text boxes. Your have selected the first check box. (if first check box is selected) Your have selected the second check box. (if second check box is selected) 3. a. Write HTML code to display the following form on your screen. Store in your directory in C drive and make sure that it functions. Make necessary modifications in the HTML code so that when the TEST button is clicked the content of the form is submitted to an ASP program in your exercises1 directory on the csweb server. Test What I Clicked My First Radio Button: My Second Radio Button: TEST b. Write an ASP code, which can read the status of the radio buttons in the above example. It then writes back the details of your selection on your screen, when activated by clicking the TEST button on your screen. Store it in your exercise1 directory (HTASPoncsweb3p1.asp). Example: Any one of the following statements appear depending on your selection of the radio button. Your have selected the first radio button. (if first check box is selected) Your have selected the second radio button. (if second check box is selected) ASP and Database Access. (Hint: Database access, recordset and data processing tips be found in example included in lecture slides 2 (ASP). Also see chapter 12 and 13 of your text book. Use the GROUPLOG database. ) 1. Write an ASP code to display the meeting no and first name of group members present in meeting no 3. You can hard code the group number in your SQL code. Store in your csweb exrcise1 directory. Name as ASPDB1.asp. Example output: 3 Mahbub 3 Rahman 3 Syed 3 Joe 2. Modify the ASP code in the above problem so that the group number is not hard coded in the SQL code. SQL code should take the value of the meetingno from a variable (meetno) defined within the ASP code. Store in your csweb exrcise1 directory. Name as ASPDB2.asp. 3. a. Write HTML code to display the following form on your screen. Store in your directory in C drive (htmldb.html) and make sure that it functions. Make necessary modifications in the HTML code so that when the TEST button is clicked a meeting number is submitted to an ASP program in your exercises1 directory on the csweb server. Query to List Participants Enter Meeting No: TEST 2

3 b. Modify the ASPDB2.asp program to be able to read the text box value (meeting number) and assign to the meetno variable. It should now be able to display the meeting no and first name of group members present in meeting no entered in the text box, when activated by clicking the TEST button on your screen. (ASPDB3.asp) 4. Write an ASP code to display the meeting no and first name of group members present in meeting no 3 with the given heading on the top (no need of a table). You can hard code the group number in your SQL code. Store in your csweb exrcise1 directory. Name as ASPDB4.asp. Example output: MEETING NUMBER FIRST NAME OF MEMBER 3 Mahbub 3 Rahman 3 Syed 3 Joe 5. Write an ASP code to display the meeting no and first name of group members present in meeting no 3 in a tabular form on the screen. You can hard code the group number in your SQL code. Store in your csweb exrcise1 directory. Name as ASPDB5.asp. Example output: Mahbub Rahman Syed Joe 6. Write two ASP code to display the meeting no and first name of group members present in meeting no 3 in a tabular form on the screen as shown in table a and table b. You can hard code the group number in your SQL code. Store in your csweb exrcise1 directory. Name as ASPDB6.asp. Example output: MEETING NUMBER FIRST NAME OF MEMBER GROUP NUMBER 3 Mahbub 3 Mahbub 3 Rahman 3 Rahman 3 Syed 3 Syed 3 Joe 3 Joe table a table b FIRST NAME OF MEMBER 7. Write two ASP code to display the meeting no and first name of group members present in meeting no 3 in a tabular form on the screen as shown in table a and table b. The header should be the field names in the data base. You can hard code the group number in your SQL code. Store in your csweb exrcise1 directory. Name as ASPDB7.asp. Example output: meetingno firstname meetingno firstname 3 Mahbub 3 Mahbub 3 Rahman 3 Rahman 3 Syed 3 Syed 3 Joe 3 Joe table a table b 8. Modify the HTML program in Q.3 (htmldb.html) so that when a meeting no is entered and clicked on the TEST button, then the meeting no and the names appear in tabular formats shown in example Write an ASP code which will display in tabular form the lastname, firstname and address of all participants who were present in a given meeting entered from the HTML screen in Q. 3 above. 10. Write client-side and server-side code to enter all the information for a new meeting. 11. Write necessary interface and code to modify the description of a selected meeting. 3

4 Some SQL quersies that may be used in ASP problem solutions List name and address of the members of group number 3. List name and address of the members present in meeting no 1 of group no 2. List name and address of the members of group number entered from screen. List name and address of the members present in a given meeting of a specified group. The group and meeting numbers are input from screen. 4

5 Reading Form Control status/value from ASP code. In completing the following questions it is very important that you should perform the following steps for better understanding: Write/Draw the expected outputs on paper. Write down the logic of the output Open/execute the code and check against your expected output. If your expected output did not match the computer output revise the process. Clarify the logic for the correct answer. Identify the cases for which the questions are wrong. (There may be questions which are not possible to be realized.) (Source: appendix F from Beg ASP pages 3.0, class notes) 1 (text chapter 3) Draw the output for the following code. <html> <head> <title>form for Spring Retreat Jacket</title> </head> <body> <h1>company Spring Retreat<br> Jacket Order Form</h1> <h3>please fill in this form and click on Save My Preferences</h3> <form ACTION="Spring.asp" METHOD="POST"> <p>please type your gender</p> <p>( male or female ): <input TYPE="TEXT" NAME="gender" size="20" value = male ></p> <p>please type your preference of size</p> <p> S M L XL : <input TYPE="TEXT" NAME="size" size="20"></p> <p>please type your preference of color</p> <p> Argent or Azure : <input TYPE="TEXT" NAME="color" size="20"></p> <p><input TYPE="RESET" VALUE="Start Over on This Page"><input TYPE="SUBMIT" VALUE="Save my Preferences"></p> </form> </body> </html> Answer to the following questions for each of the following statements included in the Spring.asp file. a. What will be the value assigned to the variable testvalue if the following statements are included? Assume that no new text is entered after opening the above document and before executing the statements. - testvalue = Request.Form ( gender ) - testvalue = Request.Form ( female ) - testvalue = Request.Form ( male ) - testvalue = Request.Form ( M ) - testvalue = Request.Form ( size ) - testvalue = Request.Form ( XL ) - testvalue = Request.Form ( Argent ) - testvalue = Request.Form ( color ) - testvalue = Request.Form ( Start Over on This Page ) - testvalue = Request.Form ( Save my Preferences ) b. What will be the value assigned to the variable testvalue if the above statements are included? Assume that following texts have been entered before the above statements are executed. i. in the first text box: M in the second text box: small in the 3 rd text box: Azure ii. in the first text box: female in the second text box: Ll in the 3 rd text box: Argent c. What will be the screen output for the Response. Write testvalue statement if executed after each of the statement in a for different text values as stated in a and b? 5

6 2. (from Beg ASP pages Appendix F) Draw the output for the following code. <HTML> <HEAD> <TITLE>Check_03_Form</TITLE></HEAD><BODY> <H3>Check 03 Form</H3> Please Czech the cities you would like to visit <FORM ACTION="Check03Response.asp" METHOD=POST> <INPUT TYPE=CHECKBOX NAME="Cities" VALUE="Prg">Prague<BR> <INPUT TYPE=CHECKBOX NAME="Cities" VALUE="Cb" CHECKED>Cheb<BR> <INPUT TYPE=CHECKBOX NAME="Cities" VALUE="Kno">Kladno<BR> <INPUT TYPE=CHECKBOX NAME="Cities" VALUE="Mlda">Mlada<BR> <INPUT TYPE="SUBMIT"></FORM></BODY> </HTML> Answer to the following questions for each of the following statements included in the Check03Response.asp file. a. What will be the value assigned to the variable testvalue if the following statements are included? Assume that no new checkbox is selected after opening the above document and before executing the statements. - testvalue = Request.Form ( cities ) - testvalue = Request.Form ( Prague ) - testvalue = Request.Form ( Prg ) - testvalue = Request.Form ( Milada ) - testvalue = Request.Form ( Mlda ) - testvalue = Request.Form ( Cb ) - testvalue = Request.Form ( Cheb ) - testvalue = Request.Form ( kno ) - testvalue = Request.Form ( Kladno ) b. What will be the value assigned to the variable testvalue if the above statements are included? Assume that following texts are entered before the above statements are executed. i. only Mlada is selected ii. Prague and Mlada is selected iii. Kladno and Mlada is selected iv. Cheb, Kladno and Mlada is selected v. All four check boxes are selected. c. What will be the screen output for the Response. Write testvalue statement if executed after each of the statement in a for different checkbox selections as stated in a and b? d. What will be the value assigned to the variable testvalue if the following statements are included? Assume the check box selection as in b. - testvalue = Request.Form ( cities )(1) - testvalue = Request.Form ( Prague )(1) - testvalue = Request.Form ( Prg )(1) - testvalue = Request.Form ( Milada )(1) - testvalue = Request.Form ( cities )(2) - testvalue = Request.Form ( cities )(3) - testvalue = Request.Form ( cities )(4) e. Write an ASP code to print the following statement : You selected city1, city2,. (city 1, city2 etc. to be replaced by the actual cities selected by the check boxes) f. What will be the screen output for the following code for each of the checkbox selections in b. You should write the expected on paper before you check it on the computer. <HTML> <HEAD> <TITLE>Check_03_Response</TITLE></HEAD> <BODY> 6

7 <H3>Check 03 Response</H3> We will schedule your itinerary for:<br> <% For icitycount=1 to Request.Form("Cities").COUNT Response.Write Request.Form("Cities")(iCityCount) Response.Write " " Next %> </BODY> </HTML> 3. (from Beg ASP pages Appendix F) Draw the output for the following code. <HTML> <HEAD> <TITLE>Option_03_Form</TITLE> </HEAD> <BODY> <H3>Option 03 Form - Arranging Multiple Option Groups</H3> Please Select Your Preferred Shipping Options<BR> <FORM ACTION="Option03Response.asp" METHOD=POST> <TABLE border=1> <TR> <TD>Shipper</TD> <TD>Speed</TD></TR> <TR> <TD><INPUT TYPE=RADIO NAME=ShipComp VALUE="FedEx" selected>federal Express </TD> <TD><INPUT TYPE=RADIO NAME=ShipSpeed VALUE="1">Overnight</TD></TR> <TR> <TD><INPUT TYPE=RADIO NAME=ShipComp VALUE="U">UPS</TD> <TD><INPUT TYPE=RADIO NAME=ShipSpeed VALUE="2" selected>second Day</TD></TR> </TABLE> <INPUT TYPE="SUBMIT" VALUE="Submit">&nbsp <INPUT TYPE="RESET" VALUE="Reset"> </FORM> </BODY> </HTML> Answer to the following questions for each of the statements included in the Option03Response.asp file. a. What will be the value assigned to the variable testvalue if the following statements are included? Assume that no new radio is selected after opening the above document and before executing the statements. - testvalue = Request.Form ( ShipComp ) - testvalue = Request.Form ( FedEx ) - testvalue = Request.Form ( ShipSpeed ) - testvalue = Request.Form ( Federal Express ) - testvalue = Request.Form ( Overnigh ) - testvalue = Request.Form ( 1 ) - testvalue = Request.Form ( 2 ) - testvalue = Request.Form ( Second Day ) - testvalue = Request.Form ( UPS ) - testvalue = Request.Form ( U ) b. What will be the value assigned to the variable testvalue if the above statements are included? Assume that following texts are entered before the above statements are executed. i. UPS and overnight is selected ii. Federal Express and UPS is selected. 7

8 c. What will be the screen output for the Response. Write testvalue statement if executed after each of the statement in a for different radio selections as stated in a and b? d. Write an ASP code to print the following statement : You selected shipper, speed. (shipper, speed etc. to be replaced by the actual values selected by the radio) 4. (from Beg ASP pages Appendix F) Draw the output for the following code. <HTML> <HEAD> <TITLE>List_02_Form</TITLE></HEAD> <BODY> <H3>List 02 Form - Multiple Lists</H3> Please click on one selection of music from the Liszt: <FORM ACTION="List02Response.asp" METHOD=GET> <SELECT SIZE=3 NAME="MusicTitle"> <OPTION>Hunnenschlacht</OPTION> <OPTION>Malediction</OPTION> <OPTION>Tannhauser</OPTION> <OPTION>Hexamaron</OPTION> <OPTION SELECTED>Lohengrin</OPTION> <OPTION>Christus</OPTION> </SELECT> <SELECT SIZE=1 NAME="MusicDynamic"> <OPTION SELECTED>Pianissimo</OPTION> <OPTION>Mezzo</OPTION> <OPTION>Forte</OPTION> </SELECT> <INPUT TYPE="SUBMIT"> </FORM></BODY> </HTML> Answer to the following questions for each of the following statements included in the List02Response.asp file. a. What will be the value assigned to the variable testvalue if the following statements are included? Assume that no new selection is made after opening the above document and before executing the statements. a. testvalue = Request.Form ( Hunnenschlacht ) - testvalue = Request.Form ( Malediction ) b. testvalue = Request.Form ( MusicTitle ) - testvalue = Request.Form ( MusicDynamic ) c. testvalue = Request.Form ( Mezzo ) - testvalue = Request.Form ( Pianissimo ) d. testvalue = Request.Form ( Forte ) - testvalue = Request.Form ( Hexamaron ) e. testvalue = Request.Form ( Lohengrin ) - testvalue = Request.Form ( Christus ) b. What will be the value assigned to the variable testvalue if the above statements are included? Assume that following texts are entered before the above statements are executed. i. Tannhauser and Mezzo is selected ii. Hunnenschlacht and Malediction is selected. iii. MusicTitle and MusicDynamic is selected c. What will be the screen output for the Response. Write testvalue statement if executed after each of the statement in a for different radio selections as stated in a and b? d. Write an ASP code to print the following statement : You selected sel1, sel2. (sel1, sel2 etc. to be replaced by the actual selections) 8

9 5. (from Beg ASP pages Appendix F) Draw the output for the following code. <HTML> <HEAD> <TITLE>List_04_Form</TITLE> </HEAD> <BODY> <H3>List 04 Form</H3> Please select one or more pieces of music from the Liszt: <FORM ACTION="List04Response.asp" METHOD=POST> <SELECT SIZE=3 NAME="MusicTitle" MULTIPLE> <OPTION SELECTED>Hunnenschlacht</OPTION> <OPTION>Malediction</OPTION> <OPTION SELECTED >Tannhauser</OPTION> <OPTION>Hexamaron</OPTION> <OPTION>Lohengrin</OPTION> <OPTION>Christus</OPTION> </SELECT> <INPUT TYPE="SUBMIT"> </FORM> </BODY> </HTML> Answer to the following questions for each of the following statements included in the List04Response.asp file. a. What will be the value assigned to the variable testvalue if the following statements are included? Assume that no new radio is selected after opening the above document and before executing the statements. - testvalue = Request.Form ( Hunnenschlacht ) - testvalue = Request.Form ( Malediction ) - testvalue = Request.Form ( MusicTitle ) - testvalue = Request.Form ( Hexamaron ) - testvalue = Request.Form ( Lohengrin ) - testvalue = Request.Form ( Christus ) b. What will be the value assigned to the variable testvalue if the above statements are included? Assume that following texts are entered before the above statements are executed. i. Hunnenschlacht and Hexamaron is selected. ii. Hexamaron, Lohengrin and Christus is selected c. What will be the screen output for the Response. Write testvalue statement if executed after each of the statement in a for different radio selections as stated in a and b? d. What will be the value assigned to the variable testvalue if the following statements are included? Assume the check box selection as in b. - testvalue = Request.Form ( Hunnenschlacht )(1) - testvalue = Request.Form ( Malediction ) - testvalue = Request.Form ( MusicTitle ) (1) - testvalue = Request.Form ( MusicTitle ) (1) - testvalue = Request.Form ( MusicTitle ) (3) - testvalue = Request.Form ( MusicTitle ) (2) e. Write an ASP code to print the following statement : You selected sel1, sel22,. (sel1, csel2 etc. to be replaced by the actual selections) f. What will be the screen output for the following code for each of the selections in b. You should write the expected on paper before you check it on the computer. <HTML> <HEAD> 9

10 <TITLE>List_04_Response</TITLE> </HEAD> <BODY> <H3>List 04 Response</H3> We will set your background <% If Request.QueryString("MusicTitle").Count=0 then Response.Write " to be silent " ElseIf Request.QueryString("MusicTitle").Count=1 Then Response.Write " music to be " Response.Write Request.QueryString("MusicTitle") Else Response.Write " music to rotate among <BR><BR>" For ititlecount=1 to Request.QueryString("MusicTitle").Count Response.Write Request.QueryString("MusicTitle")(iTitleCOunt) Response.Write "<BR>" Next End If %> <BR>as requested. </BODY> </HTML> 6. Similar questions in JavaScript to access the Form Control values. Revise the practice problems on JavaScript (1-4, available on the web), quiz questions and practice problems done in the class. 7. Revise the practice problems on quiz 2 (available on the web), practice problem on contact database (available on the web), quiz questions on database access and the problems completed in the class. 8. a. Write an ASP code, which can display on the screen the meeting no, last name and address of participants present in meeting no 2 of group no 1. Use your GROUPLOG database developed in the class. b. Write HTML code to display the following form on your screen. The textbox size should be 80. Select * From Groupmember SQL QUERY Get Details c. Modify the ASP code in q.a so that it can accept SQL query entered in the text box from the screen in q.b and displays the output of the query. 10

11 9. a. Write an ASP code, which can display on the screen the meeting no, last name and address of participants present in meeting no 1 of group no 2. Use your GROUPLOG database developed in the class. b. Write HTML code to display the following form on your screen. The text box size should be 75. Enter a SQL query: Select * From Participants Get Details c. Modify the ASP code in q.a so that it can accept SQL query entered in the text box from the screen in q.2 and displays the output of the query. 10. a. Write HTML code to display the following form on your screen. When the Get Details button is clicked the content of the form should be submitted to an ASP program in your directory on the csweb server. Meeting Details Meeting No 1: Meeting No 2: Meeting No 3: Get Details b. Write an ASP code, which can display on the screen the meeting no, last name and address of participants present in meeting no 2 of group no 1. Use your GROUPLOG database developed in the class. Choose your own output format. c. Modify the ASP code in q.b so that it can accept input from the selections made on the screen and should display the information i.e. it will display the different meetings of group a. [3 points] Write HTML code to display the following form on your screen. When the Get Details button is clicked the content of the form should be submitted to an ASP program in your directory on the csweb server. Group No 1: Group No 2: Group No 3: Group Details Get Details b. [5 points] Write an ASP code, which can display on the screen the group no, last name and address of participants present in meeting no 1 of group no 2. Use your GROUPLOG database developed in the class. Choose your own output format. 11

12 c. [2 points] Modify the ASP code in q.2 so that it can accept input from the selections made on the screen and should display the information i.e. it will display the meeting no 1 of different group. 12 a. Given the following screen. You will require to write HTML code to display the screen with two images as in figure 1. You can get the images from the CIS homepage ( Add JavaScript code so that whenever you click on the Interchange button two images will interchange their positions i.e as in figure 2. b. Modify the code in question a so that the text in the text box starts scrolling whenever the checkbox is clicked. (You should save the code in question a before modification) 12

13 13. a. Given the following screen. You will require to write HTML code to display the screen with the default values when opened. Add JavaScript code so that when you click on the INTERCHANGE button it interchanges the text in the two text boxes. An Interchange Example String 1: Interchange String 1 String 2: Interchange String 2 INTERCHANGE b. Modify the code in question a so that after exchanging the content of the text boxes it will start scrolling the content of first text box (string 1) terminated by 10 dots if the check box is checked. Stop should stop scrolling. (You should save the code in question 1 before modification) An Interchange Example String 1: Interchange String 1. String 2: Interchange String 2 Check if you want to scroll INTERCHANGE STOP 13

14 1. Given the following code <HTML> <HEAD> <TITLE>Option_03_Form</TITLE> </HEAD> <BODY> <H3>Option 03 Form - Arranging Multiple Option Groups</H3> Please Select Your Preferred Shipping Options<BR> <FORM ACTION="Option03Response.asp" METHOD=POST> <TABLE border=1> <TR> <TD>Shipper</TD> <TD>Speed</TD></TR> <TR> <TD><INPUT TYPE=RADIO NAME=ShipComp VALUE="FedEx" selected>federal Express </TD> <TD><INPUT TYPE=RADIO NAME=ShipSpeed VALUE="1">Overnight</TD></TR> <TR> <TD><INPUT TYPE=RADIO NAME=ShipComp VALUE="U">UPS</TD> <TD><INPUT TYPE=RADIO NAME=ShipSpeed VALUE="2" selected>second Day</TD></TR> </TABLE> <INPUT TYPE="SUBMIT" VALUE="Submit">&nbsp <INPUT TYPE="RESET" VALUE="Reset"> </FORM> </BODY> </HTML> a. Identify which of the following statements in the ASP may return a valid and useful information i. Request.Form ( Second day ) ii. Request. Form ( 2 ) iii. Request.Form ( ShipSpeed ) b. What is the expected return value for each of the statements in a. c. Write code segment for the ASP program so that the variable FederalExp will be assigned a value true if Federal Express is selected, and false otherwise. 2. Answer to the questions in the box for the following code. <HTML> <HEAD> a. Write a Javascript statement, which will move the content of the first text box <TITLE>Text Object Value</TITLE> to the second text box when the button is activated. <SCRIPT LANGUAGE="JavaScript"> function interchange() {.. } </SCRIPT> </HEAD> <BODY> <CENTER> <H4>An Interchange Example</H4> b. [5 points] Write a JavaScript statement which will select the checkbox. 14

15 <FORM> <INPUT TYPE="text" NAME="tested1" <BR><BR> <INPUT TYPE="text" NAME="tested2" <BR><BR> <INPUT TYPE="radio" NAME="stooges" VALUE="Larry Fine" >Larry <INPUT TYPE="button" NAME="button" VALUE="move" onclick="move()"> </FORM> </CENTER> </BODY></HTML> 3. It is intended to write code for a client-server application in which the user can make choices from different capital cities and accordingly an itinerary will be confirmed. Sample examples of input and corresponding output is shown below. 15

16 The HTML and corresponding ASP code for the problem is shown with some missing parameters and values. Fill in the blank for the desired output. <html> HTML CODE [9 points] <head> <title>check Box</title> </head> <body> <h3>check Boxes</h3> <p>please check the cities you would like to visit </p> <form ACTION="CheckBoxResponse.asp" METHOD="POST"> <p> <input TYPE="CHECKBOX" NAME=" " VALUE=" "> <br> <input TYPE="CHECKBOX" NAME=" " VALUE=" " > <br> <input TYPE="CHECKBOX" NAME=" " VALUE=" "> <br> <input TYPE="CHECKBOX" NAME=" " VALUE=" "> <br> <input TYPE="SUBMIT"></p> </form> </body></html> <html> ASP Code: CheckBoxResponse.asp [4 points] <head> <title>checkbox Response</title> </head> <body> <h3>checkbox Response</h3> <p>we will schedule your itinerary for:<br> <ul> <% For icitycount=1 to Request.Form("Capcities"). Response. Write Response.Write "<BR>" Next %> </ul> </body> </html> 16

17 1. A database table contains UserId, password and a magic number for each user. To get access to a given application a user must enter correctly the UserId, Password and the magic number matching a database entry. Given are the following screen outputs in order. Page 2 appears after page 1 is submitted, page 3 appears after page 2 is submitted and page 4 appears after page 3 is submitted. The database table entry is matched with the user entries only after the user has entered the magic number on page 3. A message You are denied access or a message Welcome you to our world! is displayed on page 4 depending if a match has not been found or if a match is found. Page 1 Page 2 Enter User ID: Enter Password: Submit Submit Enter Magic No: Page 3 Submit Page 4 You are denied access. OR Welcome you to our world! Write code for each page to obtain the above functionality. Note that you will require to pass the relevant entry values to the subsequent pages so that all entered values may be matched with the database table entry for displaying page 4 output. Follow the following instructions while writing your code. Use session variables to pass information from page 1 to page 2. Use cookies or hidden text to pass values from page 2 to page 3. You should write complete code for each page. Major emphasis will be given on the statements correctly passing the entry values. ****************************** 17

18 1. A database table contains UserId, password and a magic number for each user. To get access to a given application a user must enter correctly the UserId, Password and the magic number matching a database entry. Given are the following screen outputs in order. Page 2 appears after page 1 is submitted, page 3 appears after page 2 is submitted and page 4 appears after page 3 is submitted. The database table entry is matched with the user entries only after the user has entered the magic number on page 3. A message You are denied access or a message Welcome you to our world! is displayed on page 4 depending if a match has not been found or if a match is found. Page 1 Page 2 Enter User ID: Enter Password: Submit Submit Enter Magic No: Page 3 Submit Page 4 You are denied access. OR Welcome you to our world! Write code for each page to obtain the above functionality. Note that you will require to pass the relevant entry values to the subsequent pages so that all entered values may be matched with the database table entry for displaying page 4 output. Follow the following instructions while writing your code. Use cookies or hidden text to pass values from page 1 to page 2. Use session variables to pass information from page 2 to page 3. You should write complete code for each page. Major emphasis will be given on the statements correctly passing the entry values. *********************************** 18

19 1. Given the following HTML code and a related sample output screen. </HEAD> <BODY> Please enter your address and password to login to the system. <FORM ACTION = "CheckLogin.asp" METHOD="POST" > Address: <INPUT TYPE = "Text" NAME = " " SIZE = "40"><BR> Password: <INPUT TYPE = "Password" NAME = "Password" SIZE = "10"><P> <INPUT TYPE = "Checkbox" NAME = "SaveLogin"> Save Login as a Cookie?<P> <INPUT TYPE = "Submit" VALUE = "Login"> <INPUT TYPE = "RESET"> </FORM> </BODY> </HTML> Write statement(s), which may be included in the CheckLogin.asp file, to store the following values in a cookies collection (having multiple values for the same cookie name). Make a choice of your own for any missing names. a. Store the address read from the form if the save login as cookie is checked by the user. b. Store the password read from the form. c. Store the cookies for 30 days. 2. Write code to include the address read from the form in 1 above in a hidden text box. 19

20 5. Following two.asp files are stored in the cswebserve in a given directory. <html> <head> <title>session Variable test</title> </head> filename: Sessiontest.asp <body> <% Dim tcount tcount = Session("Count") Session("Count")= Session("Count") + 1 sessstr = "This is " & tcount & " time this page has been accessed!" Response.Write sessstr %> <hr> <p><br> <a HREF="Sessiontest.asp">Click on</a> the first link.<br> <br> <a HREF="change.asp?dest=Sessiontest.asp">Click on</a> the second link.<br> <br> </p> </body> </html> <% Session.Abandon Response.Redirect Request("dest") %> <html> filename: Change.asp <head> <title></title> </head> <body> </body> </html> Write the output screen for the following sequences of operations. i. [ 2 points] The Sessiontest.asp is opened first time. ii. [ 3 points] Click on the first link after operation in i. iii. [ 3 points] Click on the first link after operation in ii. iv. [ 3 points] Click on the second link after operation in iii. v. [ 5 points] Click on the first link after operation in iv. Explain the reasons for your output. 20

Practice problems. 1 Draw the output for the following code. 2. Draw the output for the following code.

Practice problems. 1 Draw the output for the following code. 2. Draw the output for the following code. Practice problems. 1 Draw the output for the following code. form for Spring Retreat Jacket company Spring Retreat Jacket Order Form please fill in this form and click on

More information

Hyperlinks, Tables, Forms and Frameworks

Hyperlinks, Tables, Forms and Frameworks Hyperlinks, Tables, Forms and Frameworks Web Authoring and Design Benjamin Kenwright Outline Review Previous Material HTML Tables, Forms and Frameworks Summary Review/Discussion Email? Did everyone get

More information

NETB 329 Lecture 13 Python CGI Programming

NETB 329 Lecture 13 Python CGI Programming NETB 329 Lecture 13 Python CGI Programming 1 of 83 What is CGI? The Common Gateway Interface, or CGI, is a set of standards that define how information is exchanged between the web server and a custom

More information

HTML Tables and Forms. Outline. Review. Review. Example Demo/ Walkthrough. CS 418/518 Web Programming Spring Tables to Display Data"

HTML Tables and Forms. Outline. Review. Review. Example Demo/ Walkthrough. CS 418/518 Web Programming Spring Tables to Display Data CS 418/518 Web Programming Spring 2014 HTML Tables and Forms Dr. Michele Weigle http://www.cs.odu.edu/~mweigle/cs418-s14/ Outline! Assigned Reading! Chapter 4 "Using Tables to Display Data"! Chapter 5

More information

HTML Forms. By Jaroslav Mohapl

HTML Forms. By Jaroslav Mohapl HTML Forms By Jaroslav Mohapl Abstract How to write an HTML form, create control buttons, a text input and a text area. How to input data from a list of items, a drop down list, and a list box. Simply

More information

Spring 2014 Interim. HTML forms

Spring 2014 Interim. HTML forms HTML forms Forms are used very often when the user needs to provide information to the web server: Entering keywords in a search box Placing an order Subscribing to a mailing list Posting a comment Filling

More information

Form Processing in PHP

Form Processing in PHP Form Processing in PHP Forms Forms are special components which allow your site visitors to supply various information on the HTML page. We have previously talked about creating HTML forms. Forms typically

More information

Overview of Forms. Forms are used all over the Web to: Types of forms: Accept information Provide interactivity

Overview of Forms. Forms are used all over the Web to: Types of forms: Accept information Provide interactivity HTML Forms Overview of Forms Forms are used all over the Web to: Accept information Provide interactivity Types of forms: Search form, Order form, Newsletter sign-up form, Survey form, Add to Cart form,

More information

LAB Test 1. Rules and Regulations:-

LAB Test 1. Rules and Regulations:- LAB Test 1 Rules and Regulations:- 1. Individual Test 2. Start at 3.10 pm until 4.40 pm (1 Hour and 30 Minutes) 3. Open note test 4. Send the answer to h.a.sulaiman@ieee.org a. Subject: [LabTest] Your

More information

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB Unit 8 HTML Forms and Basic CGI Slides based on course material SFU Icons their respective owners 1 Learning Objectives In this unit you will

More information

Lecture (03) from static HTML to

Lecture (03) from static HTML to Lecture (03) from static HTML to dynamic CGI By: Dr. Ahmed ElShafee ١ Dr. Ahmed ElShafee, ACU : Spring 2016, Web Programming Forms Forms add the ability to web pages to not only provide the person viewing

More information

Chapter 1 FORMS. SYS-ED/ Computer Education Techniques, Inc.

Chapter 1 FORMS. SYS-ED/ Computer Education Techniques, Inc. Chapter 1 FORMS SYS-ED/ Computer Education Techniques, Inc. Objectives You will learn: How to use forms and the related form types. Controls for interacting with forms. Menus and presenting users with

More information

Dynamic Form Processing Tool Version 5.0 November 2014

Dynamic Form Processing Tool Version 5.0 November 2014 Dynamic Form Processing Tool Version 5.0 November 2014 Need more help, watch the video! Interlogic Graphics & Marketing (719) 884-1137 This tool allows an ICWS administrator to create forms that will be

More information

HTML forms and the dynamic web

HTML forms and the dynamic web HTML forms and the dynamic web Antonio Lioy < lioy@polito.it > english version created by Marco D. Aime < m.aime@polito.it > Politecnico di Torino Dip. Automatica e Informatica timetable.html departure

More information

CHAPTER 6: CREATING A WEB FORM CREATED BY L. ASMA RIKLI (ADAPTED FROM HTML, CSS, AND DYNAMIC HTML BY CAREY)

CHAPTER 6: CREATING A WEB FORM CREATED BY L. ASMA RIKLI (ADAPTED FROM HTML, CSS, AND DYNAMIC HTML BY CAREY) CHAPTER 6: CREATING A WEB FORM INTERACTION BETWEEN A WEB FORM AND A WEB SERVER Without a form, a website is read-only. It only provides information. EXAMPLES OF FORMS USAGE Performing searches Posting

More information

PYTHON CGI PROGRAMMING

PYTHON CGI PROGRAMMING PYTHON CGI PROGRAMMING http://www.tutorialspoint.com/python/python_cgi_programming.htm Copyright tutorialspoint.com The Common Gateway Interface, or CGI, is a set of standards that define how information

More information

Creating and Building Websites

Creating and Building Websites Creating and Building Websites Stanford University Continuing Studies CS 21 Mark Branom branom@alumni.stanford.edu Course Web Site: http://web.stanford.edu/group/csp/cs21 Week 7 Slide 1 of 25 Week 7 Unfinished

More information

Summary 4/5. (contains info about the html)

Summary 4/5. (contains info about the html) Summary Tag Info Version Attributes Comment 4/5

More information

The Hypertext Markup Language (HTML) Part II. Hamid Zarrabi-Zadeh Web Programming Fall 2013

The Hypertext Markup Language (HTML) Part II. Hamid Zarrabi-Zadeh Web Programming Fall 2013 The Hypertext Markup Language (HTML) Part II Hamid Zarrabi-Zadeh Web Programming Fall 2013 2 Outline HTML Structures Tables Forms New HTML5 Elements Summary HTML Tables 4 Tables Tables are created with

More information

Create Basic Databases and Integrate with a Website Lesson 3

Create Basic Databases and Integrate with a Website Lesson 3 Create Basic Databases and Integrate with a Website Lesson 3 Combining PHP and MySQL This lesson presumes you have covered the basics of PHP as well as working with MySQL. Now you re ready to make the

More information

Q1. What is JavaScript?

Q1. What is JavaScript? Q1. What is JavaScript? JavaScript was designed to add interactivity to HTML pages JavaScript is a scripting language A scripting language is a lightweight programming language JavaScript is usually embedded

More information

Networking and Internet

Networking and Internet Today s Topic Lecture 13 Web Fundamentals Networking and Internet LAN Web pages Web resources Web client Web Server HTTP Protocol HTML & HTML Forms 1 2 LAN (Local Area Network) Networking and Internet

More information

Last &me: Javascript (forms and func&ons)

Last &me: Javascript (forms and func&ons) Let s debug some code together: hkp://www.clsp.jhu.edu/~anni/cs103/test_before.html hkp://www.clsp.jhu.edu/~anni/cs103/test_arer.html

More information

HTML Tables and. Chapter Pearson. Fundamentals of Web Development. Randy Connolly and Ricardo Hoar

HTML Tables and. Chapter Pearson. Fundamentals of Web Development. Randy Connolly and Ricardo Hoar HTML Tables and Forms Chapter 5 2017 Pearson http://www.funwebdev.com - 2 nd Ed. HTML Tables A grid of cells A table in HTML is created using the element Tables can be used to display: Many types

More information

LAB MANUAL SUBJECT: WEB TECHNOLOGY CLASS : T.E (COMPUTER) SEMESTER: VI

LAB MANUAL SUBJECT: WEB TECHNOLOGY CLASS : T.E (COMPUTER) SEMESTER: VI LAB MANUAL SUBJECT: WEB TECHNOLOGY CLASS : T.E (COMPUTER) SEMESTER: VI INDEX No. Title Pag e No. 1 Implements Basic HTML Tags 3 2 Implementation Of Table Tag 4 3 Implementation Of FRAMES 5 4 Design A FORM

More information

By the end of this section of the practical, the students should be able to:

By the end of this section of the practical, the students should be able to: By the end of this section of the practical, the students should be able to: Learn about the Document Object Model and the Document Object Model hierarchy Create and use the properties, methods and event

More information

Lesson 3. Form By Raymond Tsang. Certificate Programme in Cyber Security

Lesson 3. Form By Raymond Tsang. Certificate Programme in Cyber Security Lesson 3 Form By Raymond Tsang Certificate Programme in Cyber Security What is a form How to create a form Getting input from users Generate a result It s a section of a document containing normal content,

More information

CIS 339 Section 2. What is JavaScript

CIS 339 Section 2. What is JavaScript CIS 339 Section 2 Introduction to JavaScript 9/26/2001 2001 Paul Wolfgang 1 What is JavaScript An interpreted programming language with object-oriented capabilities. Shares its syntax with Java, C++, and

More information

Chapter4: HTML Table and Script page, HTML5 new forms. Asst. Prof. Dr. Supakit Nootyaskool Information Technology, KMITL

Chapter4: HTML Table and Script page, HTML5 new forms. Asst. Prof. Dr. Supakit Nootyaskool Information Technology, KMITL Chapter4: HTML Table and Script page, HTML5 new forms Asst. Prof. Dr. Supakit Nootyaskool Information Technology, KMITL Objective To know HTML5 creating a new style form. To understand HTML table benefits

More information

Javascript. UNIVERSITY OF MASSACHUSETTS AMHERST CMPSCI 120 Fall 2010

Javascript. UNIVERSITY OF MASSACHUSETTS AMHERST CMPSCI 120 Fall 2010 Lecture 21 Javascript Announcements Reminder: beginning with Homework #7, Javascript assignments must be submitted using a format described in an attachment to HW#7 3rd Exam date set for 12/14 in Goessmann

More information

Web Programming. Based on Notes by D. Hollinger Also Java Network Programming and Distributed Computing, Chs.. 9,10 Also Online Java Tutorial, Sun.

Web Programming. Based on Notes by D. Hollinger Also Java Network Programming and Distributed Computing, Chs.. 9,10 Also Online Java Tutorial, Sun. Web Programming Based on Notes by D. Hollinger Also Java Network Programming and Distributed Computing, Chs.. 9,10 Also Online Java Tutorial, Sun. 1 World-Wide Wide Web (Tim Berners-Lee & Cailliau 92)

More information

Creating Forms. Speaker: Ray Ryon

Creating Forms. Speaker: Ray Ryon Creating Forms Speaker: Ray Ryon In this lesson we will discuss how to create a web form. Forms are useful because they allow for input from a user. That input can then be used to respond to the user with

More information

Javascript. UNIVERSITY OF MASSACHUSETTS AMHERST CMPSCI 120 Fall 2010

Javascript. UNIVERSITY OF MASSACHUSETTS AMHERST CMPSCI 120 Fall 2010 Lecture 22 Javascript Announcements Homework#7 now due 11/24 at noon Reminder: beginning with Homework #7, Javascript assignments must be submitted using a format described in an attachment to HW#7 I will

More information

Controlled Assessment Task. Question 1 - Describe how this HTML code produces the form displayed in the browser.

Controlled Assessment Task. Question 1 - Describe how this HTML code produces the form displayed in the browser. Controlled Assessment Task Question 1 - Describe how this HTML code produces the form displayed in the browser. The form s code is displayed in the tags; this creates the object which is the visible

More information

HTML and JavaScript: Forms and Validation

HTML and JavaScript: Forms and Validation HTML and JavaScript: Forms and Validation CISC 282 October 18, 2017 Forms Collection of specific elements know as controls Allow the user to enter information Submit the data to a web server Controls are

More information

SelectSurveyASP Advanced User Manual

SelectSurveyASP Advanced User Manual SelectSurveyASP Advanced User Manual Creating Surveys 2 Designing Surveys 2 Templates 3 Libraries 4 Item Types 4 Scored Surveys 5 Page Conditions 5 Piping Answers 6 Previewing Surveys 7 Managing Surveys

More information

CSC Web Technologies, Spring HTML Review

CSC Web Technologies, Spring HTML Review CSC 342 - Web Technologies, Spring 2017 HTML Review HTML elements content : is an opening tag : is a closing tag element: is the name of the element attribute:

More information

core programming HTML Forms Sending Data to Server-Side Programs Marty Hall, Larry Brown

core programming HTML Forms Sending Data to Server-Side Programs Marty Hall, Larry Brown core programming HTML Forms Sending Data to Server-Side Programs 1 2001-2003 Marty Hall, Larry Brown http:// Agenda Sending data from forms The FORM element Text controls Push buttons Check boxes and radio

More information

Web Focused Programming With PHP

Web Focused Programming With PHP Web Focused Programming With PHP May 20 2014 Thomas Beebe Advanced DataTools Corp (tom@advancedatatools.com) Tom Beebe Tom is a Senior Database Consultant and has been with Advanced DataTools for over

More information

Building Web Based Application using HTML

Building Web Based Application using HTML Introduction to Hypertext Building Web Based Application using HTML HTML: Hypertext Markup Language Hypertext links within and among Web documents connect one document to another Origins of HTML HTML is

More information

ABSOLUTE FORM PROCESSOR ADMINISTRATION OPTIONS

ABSOLUTE FORM PROCESSOR ADMINISTRATION OPTIONS ABSOLUTE FORM PROCESSOR ADMINISTRATION OPTIONS The Absolute Form Processor is very easy to use. In order to operate the system, you just need the menu at the top of the screen. There, you ll find all the

More information

COMPUTER APPLICATIONS IN BUSINESS FYBMS SEM II

COMPUTER APPLICATIONS IN BUSINESS FYBMS SEM II CHAPTER 1: HTML 1. What is HTML? Define its structure. a. HTML [Hypertext Markup Language] is the main markup language for creating web pages and other information that can be displayed in a web browser.

More information

Writing Perl Programs using Control Structures Worked Examples

Writing Perl Programs using Control Structures Worked Examples Writing Perl Programs using Control Structures Worked Examples Louise Dennis October 27, 2004 These notes describe my attempts to do some Perl programming exercises using control structures and HTML Forms.

More information

PHP 5 if...else...elseif Statements

PHP 5 if...else...elseif Statements PHP 5 if...else...elseif Statements Conditional statements are used to perform different actions based on different conditions. PHP Conditional Statements Very often when you write code, you want to perform

More information

Enterprise Knowledge Platform Adding the Login Form to Any Web Page

Enterprise Knowledge Platform Adding the Login Form to Any Web Page Enterprise Knowledge Platform Adding the Login Form to Any Web Page EKP Adding the Login Form to Any Web Page 21JAN03 2 Table of Contents 1. Introduction...4 Overview... 4 Requirements... 4 2. A Simple

More information

Developing Ajax Applications using EWD and Python. Tutorial: Part 2

Developing Ajax Applications using EWD and Python. Tutorial: Part 2 Developing Ajax Applications using EWD and Python Tutorial: Part 2 Chapter 1: A Logon Form Introduction This second part of our tutorial on developing Ajax applications using EWD and Python will carry

More information

A. Using technology correctly, so that your site will still function for users who don t have these technologies

A. Using technology correctly, so that your site will still function for users who don t have these technologies 1. What does graceful degradation mean in the context of our class? A. Using technology correctly, so that your site will still function for users who don t have these technologies B. Eliminating the implementation

More information

Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM Advanced Internet Technology Lab.

Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM Advanced Internet Technology Lab. Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM 5049 Advanced Internet Technology Lab Lab # 1 Eng. Haneen El-masry February, 2015 Objective To be familiar with

More information

Forms, CGI. Objectives

Forms, CGI. Objectives Forms, CGI Objectives The basics of HTML forms How form content is submitted GET, POST Elements that you can have in forms Responding to forms Common Gateway Interface (CGI) Later: Servlets Generation

More information

HTML: Fragments, Frames, and Forms. Overview

HTML: Fragments, Frames, and Forms. Overview HTML: Fragments, Frames, and Forms Michael B. Spring Department of Information Science and Telecommunications University of Pittsburgh spring@ imap.pitt.edu http://www.sis. pitt.edu/~spring Overview Fragment

More information

<form>. input elements. </form>

<form>. input elements. </form> CS 183 4/8/2010 A form is an area that can contain form elements. Form elements are elements that allow the user to enter information (like text fields, text area fields, drop-down menus, radio buttons,

More information

From the Online Tools list, scroll down to SBS Connect, and click on the Register for SBS Connect link. The SBS Connect login screen loads.

From the Online Tools list, scroll down to SBS Connect, and click on the Register for SBS Connect link. The SBS Connect login screen loads. SBS EXTERNAL HEALTHCARE REVIEW USER GUIDE Create New Account Register an Entity View Attachment Upload Attachment SBS CONNECT CREATE NEW ACCOUNT Before using SBS Connect for the first time, 1) create an

More information

Problem Description Earned Max 1 PHP 20 2 JS 20 3 JS / Ajax / JSON 20 4 SQL 20 X Extra Credit 1 TOTAL Total Points 100

Problem Description Earned Max 1 PHP 20 2 JS 20 3 JS / Ajax / JSON 20 4 SQL 20 X Extra Credit 1 TOTAL Total Points 100 CSE 154, Spring 2014 Final Exam, Tuesday, June 10, 2014 Name: Quiz Section: Student ID #: TA: Rules: You have 110 minutes to complete this exam. You may receive a deduction if you keep working after the

More information

ITS331 IT Laboratory I: (Laboratory #11) Session Handling

ITS331 IT Laboratory I: (Laboratory #11) Session Handling School of Information and Computer Technology Sirindhorn International Institute of Technology Thammasat University ITS331 Information Technology Laboratory I Laboratory #11: Session Handling Creating

More information

1.264 Lecture 12. HTML Introduction to FrontPage

1.264 Lecture 12. HTML Introduction to FrontPage 1.264 Lecture 12 HTML Introduction to FrontPage HTML Subset of Structured Generalized Markup Language (SGML), a document description language SGML is ISO standard Current version of HTML is version 4.01

More information

CMPS 401 Survey of Programming Languages

CMPS 401 Survey of Programming Languages CMPS 401 Survey of Programming Languages Programming Assignment #4 PHP Language On the Ubuntu Operating System Write a PHP program (P4.php) and create a HTML (P4.html) page under the Ubuntu operating system.

More information

PHP Tutorial 6(a) Using PHP with MySQL

PHP Tutorial 6(a) Using PHP with MySQL Objectives After completing this tutorial, the student should have learned; The basic in calling MySQL from PHP How to display data from MySQL using PHP How to insert data into MySQL using PHP Faculty

More information

I will link the following rough sketch of my mom to our class homepage: Code Used

I will link the following rough sketch of my mom to our class homepage: Code Used Assignment Eight: Fabulous Forms INTRODUCTION Let's start off this assignment with some work, shall we? (rubbing hands together as a mob boss would). Go to your page #3 (the one listing likes and dislikes)

More information

USQ/CSC2406 Web Publishing

USQ/CSC2406 Web Publishing USQ/CSC2406 Web Publishing Lecture 4: HTML Forms, Server & CGI Scripts Tralvex (Rex) Yeap 19 December 2002 Outline Quick Review on Lecture 3 Topic 7: HTML Forms Topic 8: Server & CGI Scripts Class Activity

More information

Student, Perfect Final Exam May 25, 2006 ID: Exam No CS-081/Vickery Page 1 of 6

Student, Perfect Final Exam May 25, 2006 ID: Exam No CS-081/Vickery Page 1 of 6 Student, Perfect Final Exam May 25, 2006 ID: 9999. Exam No. 3193 CS-081/Vickery Page 1 of 6 NOTE: It is my policy to give a failing grade in the course to any student who either gives or receives aid on

More information

COMS 359: Interactive Media

COMS 359: Interactive Media COMS 359: Interactive Media Agenda Project #3 Review Forms (con t) CGI Validation Design Preview Project #3 report Who is your client? What is the project? Project Three action= http://...cgi method=

More information

Wholesale Lockbox User Guide

Wholesale Lockbox User Guide Wholesale Lockbox User Guide August 2017 Copyright 2017 City National Bank City National Bank Member FDIC For Client Use Only Table of Contents Introduction... 3 Getting Started... 4 System Requirements...

More information

D B M G. Introduction to databases. Web programming: the HTML language. Web programming. The HTML Politecnico di Torino 1

D B M G. Introduction to databases. Web programming: the HTML language. Web programming. The HTML Politecnico di Torino 1 Web programming The HTML language The HTML language Basic concepts User interfaces in HTML Forms Tables Passing parameters stored in forms @2017 Politecnico di Torino 1 Basic concepts HTML: HyperText Markup

More information

Simple But Useful Tools for Interactive WWW Development

Simple But Useful Tools for Interactive WWW Development Simple But Useful Tools for Interactive WWW Development Robert C. Maher Department of Electrical Engineering University of Nebraska-Lincoln Lincoln, NE 68588-0511 rmaher@unl.edu Abstract An important area

More information

Advanced HTML 5.1 INTRODUCTION 5.2 OBJECTIVES

Advanced HTML 5.1 INTRODUCTION 5.2 OBJECTIVES 5 Advanced HTML 5.1 INTRODUCTION An effective way to organize web documents, visually, and also logically, by dividing the page into different parts is the necessity of the website today. In each part

More information

SYBMM ADVANCED COMPUTERS QUESTION BANK 2013

SYBMM ADVANCED COMPUTERS QUESTION BANK 2013 CHAPTER 1: BASIC CONCEPTS OF WEB DESIGNING 1. What is the web? What are the three ways you can build a webpage? The World Wide Web (abbreviated as WWW or W3, commonly known as the web), is a system of

More information

Bruce Moore Fall 99 Internship September 23, 1999 Supervised by Dr. John P.

Bruce Moore Fall 99 Internship September 23, 1999 Supervised by Dr. John P. Bruce Moore Fall 99 Internship September 23, 1999 Supervised by Dr. John P. Russo Active Server Pages Active Server Pages are Microsoft s newest server-based technology for building dynamic and interactive

More information

jquery - Other Selectors In jquery the selectors are defined inside the $(" ") jquery wrapper also you have to use single quotes jquery wrapper.

jquery - Other Selectors In jquery the selectors are defined inside the $( ) jquery wrapper also you have to use single quotes jquery wrapper. jquery - Other Selectors In jquery the selectors are defined inside the $(" ") jquery wrapper also you have to use single quotes jquery wrapper. There are different types of jquery selectors available

More information

Subject Name: Advanced Web Programming Subject Code: (13MCA43) 1. what is PHP? Discuss different control statements

Subject Name: Advanced Web Programming Subject Code: (13MCA43) 1. what is PHP? Discuss different control statements PES Institute of Technology, Bangalore South Campus (Formerly PES School of Engineering) (Hosur Road, 1KM before Electronic City, Bangalore-560 100) Dept of MCA INTERNAL TEST (SCHEME AND SOLUTION) 2 Subject

More information

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6 CS 350 COMPUTER/HUMAN INTERACTION Lecture 6 Setting up PPP webpage Log into lab Linux client or into csserver directly Webspace (www_home) should be set up Change directory for CS 350 assignments cp r

More information

Web Development and HTML. Shan-Hung Wu CS, NTHU

Web Development and HTML. Shan-Hung Wu CS, NTHU Web Development and HTML Shan-Hung Wu CS, NTHU Outline How does Internet Work? Web Development HTML Block vs. Inline elements Lists Links and Attributes Tables Forms 2 Outline How does Internet Work? Web

More information

Web Programming. Dr Walid M. Aly. Lecture 10 PHP. lec10. Web Programming CS433/CS614 22:32. Dr Walid M. Aly

Web Programming. Dr Walid M. Aly. Lecture 10 PHP. lec10. Web Programming CS433/CS614 22:32. Dr Walid M. Aly Web Programming Lecture 10 PHP 1 Purpose of Server-Side Scripting database access Web page can serve as front-end to a database Ømake requests from browser, Øpassed on to Web server, Øcalls a program to

More information

Lecture 5 Security and User Input. INLS 760 Web Databases Spring 2013 Rob Capra

Lecture 5 Security and User Input. INLS 760 Web Databases Spring 2013 Rob Capra Lecture 5 Security and User Input INLS 760 Web Databases Spring 2013 Rob Capra Security What data should be stored on a web server? HTTP logs? Users account information? Passwords? Possible harms Exposure

More information

EDA095 HTTP. Pierre Nugues. March 30, Lund University

EDA095 HTTP. Pierre Nugues. March 30, Lund University EDA095 HTTP Pierre Nugues Lund University http://cs.lth.se/pierre_nugues/ March 30, 2017 Covers: Chapter 6, Java Network Programming, 4 rd ed., Elliotte Rusty Harold Pierre Nugues EDA095 HTTP March 30,

More information

COMP1000 Mid-Session Test 2017s1

COMP1000 Mid-Session Test 2017s1 COMP1000 Mid-Session Test 2017s1 Total Marks: 45 Duration: 55 minutes + 10 min reading time This examination has three parts: Part 1: 15 Multiple Choice Questions (15 marks /45) Part 2: Practical Excel

More information

Multimedia im Netz Online Multimedia Winter semester 2015/16. Tutorial 03 Minor Subject

Multimedia im Netz Online Multimedia Winter semester 2015/16. Tutorial 03 Minor Subject Multimedia im Netz Online Multimedia Winter semester 2015/16 Tutorial 03 Minor Subject Ludwig- Maximilians- Universität München Online Multimedia WS 2015/16 - Tutorial 03-1 Today s Agenda Quick test Server

More information

Advanced HTML Scripting WebGUI Users Conference

Advanced HTML Scripting WebGUI Users Conference Advanced HTML Scripting 2004 WebGUI Users Conference XHTML where did that x come from? XHTML =? Extensible Hypertext Markup Language Combination of HTML and XML More strict than HTML Things to Remember

More information

DAY 2. Creating Forms

DAY 2. Creating Forms DAY 2 Creating Forms LESSON LEARNING TARGETS I can identify and apply the different HTML tags to create a Web page form. I can describe the ways data is sent in a form in namevalue pairs. I can create

More information

Server-Side Web Programming: Python (Part 1) Copyright 2017 by Robert M. Dondero, Ph.D. Princeton University

Server-Side Web Programming: Python (Part 1) Copyright 2017 by Robert M. Dondero, Ph.D. Princeton University Server-Side Web Programming: Python (Part 1) Copyright 2017 by Robert M. Dondero, Ph.D. Princeton University 1 Objectives You will learn about Server-side web programming in Python Common Gateway Interface

More information

Crafting a Lightweight Search Engine

Crafting a Lightweight Search Engine Crafting a Lightweight Search Engine Feng-Jen Yang Department of Mathematics and Information Sciences University of North Texas at Dallas Dallas, TX 75241 Abstract Web-based search is commonly perceived

More information

UNIT-VI CREATING AND USING FORMS

UNIT-VI CREATING AND USING FORMS UNIT-VI CREATING AND USING FORMS To create a fully functional web application, you need to be able to interact with your users. The common way to receive information from web users is through a form. Forms

More information

HTTP. EC512 Spring /15/2015 EC512 - Prof. Thomas Skinner 1

HTTP. EC512 Spring /15/2015 EC512 - Prof. Thomas Skinner 1 HTTP EC512 Spring 2015 2/15/2015 EC512 - Prof. Thomas Skinner 1 HTTP HTTP is the standard protocol used between a web browser and a web server. It is standardized by the World Wide Web Consortium, W3C

More information

Database Connectivity using PHP Some Points to Remember:

Database Connectivity using PHP Some Points to Remember: Database Connectivity using PHP Some Points to Remember: 1. PHP has a boolean datatype which can have 2 values: true or false. However, in PHP, the number 0 (zero) is also considered as equivalent to False.

More information

blink.html 1/1 lectures/6/src/ form.html 1/1 lectures/6/src/

blink.html 1/1 lectures/6/src/ form.html 1/1 lectures/6/src/ blink.html 1/1 3: blink.html 5: David J. Malan Computer Science E-75 7: Harvard Extension School 8: 9: --> 11:

More information

Outline. Introducing Form. Introducing Forms 2/21/2013 INTRODUCTION TO WEB DEVELOPMENT AND HTML

Outline. Introducing Form. Introducing Forms 2/21/2013 INTRODUCTION TO WEB DEVELOPMENT AND HTML Outline INTRODUCTION TO WEB DEVELOPMENT AND HTML Introducing Forms The element Focus Sending form data to the server Exercise Lecture 07: Forms - Spring 2013 Introducing Form Any form is declared

More information

Numara FootPrints Changelog January 26, 2009

Numara FootPrints Changelog January 26, 2009 Numara FootPrints 9.0.3 Changelog January 26, 2009 Address Book The logo in the Address Book always pointed to the Numara Software URL. Address book fields were missing from a number of features in FootPrints

More information

HTML crashcourse. general structure tables forms textfield textarea selectbox listbox hidden field checkbox radiobuttons submit button

HTML crashcourse. general structure tables forms textfield textarea selectbox listbox hidden field checkbox radiobuttons submit button HTML crashcourse general structure tables forms textfield textarea selectbox listbox hidden field checkbox radiobuttons submit button Andreas Schmidt HTML Crash-Kurs 1/10 general structure

More information

Chapter 16. JavaScript 3: Functions Table of Contents

Chapter 16. JavaScript 3: Functions Table of Contents Chapter 16. JavaScript 3: Functions Table of Contents Objectives... 2 14.1 Introduction... 2 14.1.1 Introduction to JavaScript Functions... 2 14.1.2 Uses of Functions... 2 14.2 Using Functions... 2 14.2.1

More information

Submitting forms (client-side)

Submitting forms (client-side) Client/Server Submitting forms (client-side) Submitting forms (client-side) Submitting forms (client-side) submit.php $len = strlen($_post["password"]); $name = $_POST["name"]; print "Welcome ". $name;

More information

Tilak Maharashtra University

Tilak Maharashtra University Tilak Maharashtra University Bachelor of Computer Applications Second Year BCA 321- C++ INTRODUCTION C++ programming Basic Object Oriented programming, Characteristics, Advantages of object Oriented programming

More information

Creating Web Pages Using HTML

Creating Web Pages Using HTML Creating Web Pages Using HTML HTML Commands Commands are called tags Each tag is surrounded by Some tags need ending tags containing / Tags are not case sensitive, but for future compatibility, use

More information

Consider the following file A_Q1.html.

Consider the following file A_Q1.html. Consider the following file A_Q1.html. 1 2 3 Q1A 4 5 6 7 function check () { 8 } 9 10 11

More information

Dreamweaver: Web Forms

Dreamweaver: Web Forms Dreamweaver: Web Forms Introduction Web forms allow your users to type information into form fields on a web page and send it to you. Dreamweaver makes it easy to create them. This workshop is a follow-up

More information

A website is a way to present your content to the world, using HTML to present that content and make it look good

A website is a way to present your content to the world, using HTML to present that content and make it look good What is a website? A website is a way to present your content to the world, using HTML to present that content and make it look good HTML: What is it? HTML stands for Hyper Text Markup Language An HTML

More information

Comp-206 : Introduction to Software Systems Lecture 23. Alexandre Denault Computer Science McGill University Fall 2006

Comp-206 : Introduction to Software Systems Lecture 23. Alexandre Denault Computer Science McGill University Fall 2006 HTML, CSS Comp-206 : Introduction to Software Systems Lecture 23 Alexandre Denault Computer Science McGill University Fall 2006 Course Evaluation - Mercury 22 / 53 41.5% Assignment 3 Artistic Bonus There

More information

Lecture : 3. Practical : 2. Course Credit. Tutorial : 0. Total : 5. Course Learning Outcomes

Lecture : 3. Practical : 2. Course Credit. Tutorial : 0. Total : 5. Course Learning Outcomes Course Title Course Code WEB DESIGNING TECHNOLOGIES DCE311 Lecture : 3 Course Credit Practical : Tutorial : 0 Total : 5 Course Learning Outcomes At end of the course, students will be able to: Understand

More information

CS Exam 1 Review Suggestions - Spring 2017

CS Exam 1 Review Suggestions - Spring 2017 CS 328 - Exam 1 Review Suggestions p. 1 CS 328 - Exam 1 Review Suggestions - Spring 2017 last modified: 2017-02-16 You are responsible for material covered in class sessions and homeworks; but, here's

More information

How to Set Up a Custom Challenge Page for Authentication

How to Set Up a Custom Challenge Page for Authentication How to Set Up a Custom Challenge Page for Authentication Setting up a custom challenge page is a three step process: 1. Create a custom challenge page. Deploy the created custom challenge page on your

More information

Test Results. Generation Java. ID-10t Consultations. Assistant Professor Department of Computer Science Siena College

Test Results. Generation Java. ID-10t Consultations. Assistant Professor Department of Computer Science Siena College Test Results Requested by: Dr. Darren Lim Assistant Professor Department of Computer Science Siena College Mrs. Pauline White Visiting Professor Department of Computer Science Siena College Generation

More information