INE1020 Introduction to Internet Engineering Tutorial 8 All about Lab 6
Objective How to set up the web server to run CGI scripts How to use CGI/Perl scripts for implementing common web-based applications Understand the structure of CGI/Perl scripts
How to run Perl in web server? Use ActivePerl You can download from the course web pages Just double click the program and everything will be set up for you
Test your Perl scripts Write a simple Perl scripts and put it under your web server’s base directory Type the URL address of the Perl scripts in the browser and see the result
What is in Lab 6? An authentication scripts A sending scripts A course Enrollment scripts
Authentication Scripts The script is given to you You have to analysis it and find out the user name and password You have to show you can login successfully You have to answer question 3 and 5 in the experiment
Sending Scripts The script is given to you Send a to your own account Make some change in the script such that the response of the program will not mislead the user
Course Enrollment Scripts Html and simple script is given only You need to implement all the requirements stated in the menu –Check the FirstName field –Users can choose INE1020 and IEG3310 –Users can not choose IEG3310 if they are year 1 student
Submission Deadline –23:59:59 of 11 th Nov for Monday group –23:59:59 of 14 th Nov for Thursday group Send to You should include –Name and student id –Answer to question 3 and 5 for experiment 1 –Answer to question 5 for experiment 2 –All source code for experiment 1, 2 and 3. You should zip all the source code into one file and name it with your student id
Mid-term Q1 Most people have serious spelling mistake that cause 0 mark: eg. identification, acknowledgement, asterisk. No one get the right answer for "data flow tag"
Mid-term Q3 0.5 All html are correct 0.5 Use for loop correctly 1.0 Use if/switch to check the case correctly –0.5 if some case is correct 0.5 Use continue/else correctly 0.5 No other major JavaScript syntax error
Mid-term Q3 Be careful of using writeln, you should add “ ” at the end of each writeln Remember the use of for loop and if-else statement Remember the different between == and = Continue only break for and while loop