Question

In: Computer Science

Purpose: Experiment the interactive mode with php Instruction: Implement the following two different requirements and compare...

Purpose: Experiment the interactive mode with php

Instruction: Implement the following two different requirements and compare the results:

Implementation 1: Create a html file (login.html) with a login form that contains two labels, two text boxes and one submit button as follows:

User Name: ______________

Password: _______________

submit

When a user enters values for user name and password text boxes and clicks the submit button, the values are sent to login_handle.php and the values are assigned to two variables: $username and $password. Then, the scripts respond to the user a welcome message with the user name. For example, if a user enters "Peter" as the user name and the password, then the script responds to the user "Welcome Peter!"

Implementation 2: Create a user.html file with a user form as follows:

User Name: ______________

submit

When a user enters a value for the user name text box and clicks the submit button, the value is sent to user_handle.php and assigned to a variable: $username. Then, the script responds to the user with a form with one label and one text box as follows:

Password: ______________

submit

When a user enters a value for the password text box and clicks the submit button, the value is sent to password_handle.php and the password value is assigned to a variable: $password. Then, the scripts respond to the user a welcome message with the user name. For example, if a user enters "Peter" as the user name in the user.html then the script shall respond to the user "Welcome Peter!"

Solutions

Expert Solution

1.Implement

first page:

second page:

2.Implement

first page:

second page:

third page:


Related Solutions

An experiment was conducted to compare the lifetimes of two different car batteries(from two different manufacturer)...
An experiment was conducted to compare the lifetimes of two different car batteries(from two different manufacturer) that both claim a lifetime of at least 4 years. 12 batteries from apremium manufacturer were tested and the results were a mean lifetime of 4.31 years with a standarddeviation of 0.39 years. 15 batteries from a budget manufacturer were tested and the results werea mean lifetime of 3.94 years with a standard deviation of 0.63 years. Can you conclude up to aα= 0.05level...
An experiment is planned to compare three methods of instruction. Each is tested with a single...
An experiment is planned to compare three methods of instruction. Each is tested with a single classroom of 25 students. A different instructor is to be used for each classroom and consequently each instruction method. a. Write a short critique of the proposed experiment. b. How could the experiment be improved?
You will create a program that runs in one of two modes, interactive mode and test...
You will create a program that runs in one of two modes, interactive mode and test mode. The mode will determined by the command line, passing in a "-i" flag for interactive or "-t" for test mode. Require the user to pass in a flag. $> ./lab02 -i Make a selection: 1) Insert value at position 2) Remove at position 3) Replace value at position 4) Print length 5) Print list 6) Exit Choice: $> ./lab02 -t <output from your...
An experiment was conducted to compare the alcohol content of soy sauce on two different production...
An experiment was conducted to compare the alcohol content of soy sauce on two different production lines. Production was monitored eight times a day in both production lines. Production line 1 has a sample standard deviation of 0.15 and Production line 2 has a sample standard deviation of 0.8. Assume both populations are normal. State and conclude your hypothesis at the 0.05 level of significance if the both of production lines have the same variability?
An experiment was performed to compare the abrasive wear of two different laminated materials. 40 pieces...
An experiment was performed to compare the abrasive wear of two different laminated materials. 40 pieces of material 1 were tested by exposing each piece to a machine measuring wear. 100 pieces of material 2 were similarly tested. In each case, the depth of wear was observed. The samples of material 1 gave an average (coded) wear of 85 units with a sample standard deviation of 4, while the samples of material 2 gave an average of 81 with a...
Instruction: Read the following scenario study and respond as per the following requirements: Benjamin, the owner...
Instruction: Read the following scenario study and respond as per the following requirements: Benjamin, the owner of a small consultancy in Victoria, thought he could boost his income by creating false companies and submitting fraudulent activity statements to the ATO. Thinking that the sheer volume of activity statements the ATO processes would allow him to slip under the radar undetected, he created 17 bogus companies and submitted fraudulent activity statements for each of them. However, instead of the hefty GST...
The purpose of this assignment is to compare the different market structures within the realm of...
The purpose of this assignment is to compare the different market structures within the realm of health care. Identify the four basic market structures, describe their role within health economics, describe the advantages and disadvantages of each market structure, and provide a specific health-care-related example of each market structure. Please use two or three peer-reviewed sources to assist you with this assignment.
IN C ONLY (follow instruction please) Implement the following functions: Queue * initQueue( ) // Return...
IN C ONLY (follow instruction please) Implement the following functions: Queue * initQueue( ) // Return empty queue // enqueue and dequeue each return an int error code int enqueue(int, Queue *) int dequeue(Queue *, int *) int getQsize(Queue *) // returns # of items in queue void freeQueue(Queue *) // Free *all* space Implement the above using a circular-linked list. Again, all operations except freeQueue should take O(1) time. You will need to document each of your functions to...
In this project you will implement and experiment with three different sorting algorithms: Insertion Sort, Selection...
In this project you will implement and experiment with three different sorting algorithms: Insertion Sort, Selection sort and Bubble Sort. The objective of this project is to understand the relation between the theoretical asymptotic complexities (Big-O) computed in class and the actual running times for different kinds of input. The enclosed source file main.cpp contains a program that reads two inputs: a letter specifying which sorting algorithm to use (I for InsertionSort , S for SelectionSort and B for BubbleSort),...
An experiment is conducted to compare the effects of weathering on paint of three different types....
An experiment is conducted to compare the effects of weathering on paint of three different types. To do so, identical surfaces are coated with some paint of each type that has been exposed to four different environments. Measurements of the degree of deterioration we made for each surface. The data set is uploaded to Moodle. What can you say about the different paint types and different environments and their effects on the paint degradation? Deterioration Paint Type Environment 9.42 A...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT