Enter Grade Report. No Place Like Gilbert Duenas. California State University San Marcos. Johnny Koons. CS 441 Software Engineering

Size: px
Start display at page:

Download "Enter Grade Report. No Place Like Gilbert Duenas. California State University San Marcos. Johnny Koons. CS 441 Software Engineering"

Transcription

1 Enter Grade Report No Place Like Gilbert Duenas Johnny Koons Russell Hathaway California State University San Marcos CS 441 Software Engineering Dr. Kazumi Slott

2 Contents Activity Diagram... 2 Class Diagram... 3 Sequence Diagram... 4 File Descriptions... 5 File Specifications... 6 login.php... 7 course.php... 8 class.php entergrade.php Test Table P a g e

3 Activity Diagram Professor login Enter information Invalid Information Valid? No Yes Verify Permissions Select course Select class Enter grades Continue? No Yes Log out 2 P a g e

4 Class Diagram login.php +login string +loginpassword: string +submit(login , loginpassword) course.php +$ Address: string +$Password: string +$courseid: int +displaytable() +submit($courseid) << USES >> class.php +$CRNmatch: int +$studentid: int +$grade: char +displaytable() +submit($crnmatch, $studentid, $grade) << USES >> <<MySQL Database>> database -databaseid: string +query($ address, $Password) +query($courseid) +query($courseid, $studentid, $grade) +update($courseid, $studentid, $grade) entergrade.php -ProfId: integer +Dept: string +displaytable() +selectcourseid() 3 P a g e << USES >>

5 Sequence Diagram Professor Courses Classes Database Login Login Verified List Courses Display Courses Select Course List Classes Display Classes Select Classes Enter Grades Display Grades Save Data Logout 4 P a g e

6 File Descriptions login.php Inputs are address and password. Accept an address and password from a professor. The information is passed to course.php. Then a list of courses taught by the professor is listed. course.php Inputs are address and password from login.php. Another input is the course selection by the professor. Allow a professor to select a course id number from a list retrieved from the database. The selection is passed to class.php. Then a roster of students in the course is listed. class.php Input is the course id number from course.php Other inputs are letter grades, and a button to submit the grades when finished. Allow a professor to enter grades for students in the class. The grades are passed to entergrade.php where the information is saved to the database. A list of the new grades entered are displayed. entergrade.php Inputs are the grades from class.php. A submit button allows the professor to select another course id. The grades are entered into the database. Then the updated list is displayed. The professor should receive a confirmation of the entered grades as well as an option to enter more grades. 5 P a g e

7 File Specifications It is assumed the database is created and holding all appropriate information. Weighted level from 1 to 10. login.php This accepts a professor's address and password. Then it authenticates with the database. If the login is correct, they will be allowed to continue. If not, they will be prompted to login again. Weighted value: 7 Completed by Johnny course.php This displays a list of courses after logging in. Only the courses taught by the professor will be listed. There are functions that will access the database to list courses. Weighted value: 4 Completed by Russell class.php This displays a list of students in the class. There are functions that will access the database to list all the students in that course. Grades can be entered on this page. Weighted value: 5 Completed by Russell entergrade.php This saves the grades entered in class.php, the previous page. An updated list of the grades is shown. Weighted value: 8 Completed by Gilbert 6 P a g e

8 login.php <?php session_start(); $_SESSION = array(); session_destroy();?> <!DOCTYPE html PUBLIC "-//w3c//dtd XHTML 1.0 Strict//EN" " <html xmlns=" lang="en"> <head> <title>professor Login</title> <meta http-equiv="content-script-type" charset="utf-8" content="type" /> <link rel='stylesheet' href='sql2.css' /> </head> <body> <h1>log In</h1> <div class="container"> <form method="get" action="course.php"> <p>user <input autofocus="autofocus" tabindex="1" type="text" name="login " title=" " /> </p> /> <p>password <input tabindex="2" type="password" name="loginpassword" title="password" </p> <p class="loginbutton"> <button tabindex="3" type="submit">log In</button> </p> </form> <br> <p>please use the following information to log in.</p> <p>username: professor@csusm.edu</p> <p>password: mypassword</p> </div> </body> </html> 7 P a g e

9 course.php <!DOCTYPE html PUBLIC "-//w3c//dtd XHTML 1.0 Strict//EN" " <html xmlns=" lang="en"> <head> <title>course Submit Form</title> <meta http-equiv="content-script-type" charset="utf-8" content="type" /> <link rel='stylesheet' href='sql2.css' /> </head> <body> <h1>course List...</h1> <div class="container"> <?php session_start(); // Check if a current session exists if(isset($_session[' address'])) $ Address = $_SESSION[' Address']; $Password = $_SESSION['Password']; // Otherwise, get information from form in login.php else $ Address = addslashes($_get["login "]); $Password = addslashes($_get["loginpassword"]); // Make sure values have been entered for and password if(empty($ address) empty($password)) exit("<p>please click back on your browser and enter a value.</p><p><a href='login.php'>or click here to reset.</a></p>"); // Check if is in valid format 'website@domain.com' else if(!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]2,3)$", $ Address)) exit("<p>please click back on your browser and enter a valid .</p><p><a href='login.php'>or click here to reset.</a></p>"); // Connect to the server 8 P a g e

10 $DBConnect ('localhost', 'username', 'password') Or die("<div><p>error: Database server unavailable.</p>". "<p>error Code ". mysqli_connect_errno(). ": ". mysqli_connect_error(). "</p><p><a href='login.php'>return to login.</a></p></div>"); // Connect to the 'database') Or die("<div><p>error: Database not found</p>". "<p>error Code ". mysqli_connect_errno(). ": ". mysqli_connect_error(). "</p><p><a href='login.php'>return to login.</a></p></div>"); // Send query to find correct professor and store in a variable $result = mysqli_query($dbconnect, "SELECT * FROM faculty WHERE facultyid = '$ Address';" ); // Store a row from the query result $Row = mysqli_fetch_row($result); // Verify login information if ($ Address!= $Row[0] $Password!= $Row[4]) exit("<p>that information does not match our records.</p><p><a href='login.php'>return to login.</a></p>"); // Send query to find courses associated with professor $result2 = mysqli_query($dbconnect, "SELECT * FROM course WHERE facultyid='$ address';"); // Create a table if data has been found if (mysqli_num_rows($result) > 0) echo "<table><caption>...for ". $Row[1]. " ". $Row[2]. "</caption> <tr><th>course ID</th> <th>course Name</th> <th>course Year</th> <th>units</th> <th></th></tr>"; // Display rows using a loop while ($fieldrow = mysqli_fetch_row($result2)) echo "<tr><td><a href=' $fieldrow[0]. "'>". $fieldrow[0]. "</td> <td>". $fieldrow[1]. "</td> <td>". $fieldrow[2]. "</td> <td>". $fieldrow[3]. "</td> <td class='tdinput'><a href=' $fieldrow[0]. "'>Select</a></td></tr>"; 9 P a g e

11 else echo "</table>"; echo "<div><p>user not found</p><p>please click back on your browser</p></div>"; // Save and password in a session variable, then release results $_SESSION[' Address'] = $ Address; $_SESSION['Password'] = $Password; mysqli_free_result($result); mysqli_free_result($result2); mysqli_close($dbconnect);?> </div> </body> </html> 10 P a g e

12 class.php <!DOCTYPE html PUBLIC "-//w3c//dtd XHTML 1.0 Strict//EN" " <html xmlns=" lang="en"> <head> <title>enter Grade Submit Form</title> <meta http-equiv="content-script-type" charset="utf-8" content="type" /> <link rel='stylesheet' href='sql2.css' /> </head> <body> <h1>class Roster...</h1> <div class="container"> <?php session_start(); // Get information from course.php, then check for valid information $CRNmatch = $_GET["classSelect"]; if(empty($crnmatch)) exit("<p>please click back on your browser and enter a value.</p><p><a href='course.php'>or click here to reset.</a></p>"); else if(!preg_match("/[0-9]5$/", $CRNmatch)) exit("<p>please click back on your browser and enter a valid course ID.</p><p><a href='course.php'>or click here to reset.</a></p>"); // Connect to the server $DBConnect ('localhost', 'username', 'password') Or die("<div><p>error: Database server unavailable.</p>". "<p>error Code ". mysqli_connect_errno(). ": ". mysqli_connect_error(). "</p><p><a href='login.php'>return to login.</a></p></div>"); // Connect to the 'database') Or die("<div><p>error: Database not found</p>". "<p>error Code ". mysqli_connect_errno(). ": ". mysqli_connect_error(). "</p><p><a href='login.php'>return to login.</a></p></div>"); // Send query to find roster associated with course number $result2 = mysqli_query($dbconnect, "SELECT roster.studentid, student.firstname, student.lastname, UPPER(roster.grade) FROM student, roster WHERE student.studentid =roster.studentid AND roster.crn ='$CRNmatch' ORDER BY student.lastname;"); // Create a table if data has been found if (mysqli_num_rows($result2) > 0) 11 P a g e

13 echo "<form method='get' action='entergrade.php'><table> <caption>...for Course ID ". $CRNmatch. "</caption> <tr><th>student ID</th> <th>first Name</th> <th>last Name</th> <th>grade</th> <th>enter Grade</th></tr>"; // Display rows using a loop while ($fieldrow = mysqli_fetch_row($result2)) echo "<tr><td>". $fieldrow[0]. "</td> <td>". $fieldrow[1]. "</td> <td>". $fieldrow[2]. "</td> <td class='tdinput'>". $fieldrow[3]. "</td> <td class='tdinput'><input type='text' maxlength='1' name='". $fieldrow[0]. "'> </td></tr>"; echo "</table><p class='loginbutton'><button name='rostersubmit' type='submit'>submit</button></p></form>"; else echo "<div><p>class not found</p><p>please click back on your browser</p></div>"; // Save CRNmatch in a session variable, then release results $_SESSION['CRNmatch'] = $CRNmatch; mysqli_free_result($result2); mysqli_close($dbconnect);?> </div> </body> </html> 12 P a g e

14 entergrade.php <!DOCTYPE html PUBLIC "-//w3c//dtd XHTML 1.0 Strict//EN" " <html xmlns=" lang="en"> <head> <title>enter Grade Submit Form</title> <meta http-equiv="content-script-type" charset="utf-8" content="type" /> <link rel='stylesheet' href='sql2.css' /> </head> <body> <h1>grades entered...</h1> <div class="container"> <?php session_start(); $CRNmatch = $_SESSION['CRNmatch']; // Connect to the server $DBConnect ('localhost', 'username', 'password') Or die("<div><p>error: Database server unavailable.</p>". "<p>error Code ". mysqli_connect_errno(). ": ". mysqli_connect_error(). "</p><p><a href='login.php'>return to login.</a></p></div>"); // Connect to the 'database') Or die("<div><p>error: Database not found</p>". "<p>error Code ". mysqli_connect_errno(). ": ". mysqli_connect_error(). "</p><p><a href='login.php'>return to login.</a></p></div>"); // Send query to find roster associated with course number $result2 = mysqli_query($dbconnect, "SELECT roster.studentid, student.firstname, student.lastname, UPPER(roster.grade) FROM student, roster WHERE student.studentid =roster.studentid AND CRN ='$CRNmatch' ORDER BY student.lastname;"); // Get updated grades from each input while($fieldrow = mysqli_fetch_row($result2)) $newgrade = $_GET["$fieldRow[0]"]; // Check if a grade has been entered in the field if($newgrade) // Exit if not any of these... if(!preg_match('/^[abcdfabcdf]1$/', $newgrade)) exit("<p>please click back on your browser and enter a valid letter grade (A, B, C, D, F).</p>"); 13 P a g e

15 // Query to update the grade $sql = "UPDATE roster SET roster.grade='$newgrade' WHERE roster.studentid='$fieldrow[0]' AND roster.crn='$crnmatch'"; if (!mysqli_query($dbconnect, $sql)) echo "Error updating record: ". mysqli_error($dbconnect); // Display the updated table if (mysqli_num_rows($result2) > 0) echo "<table> <caption>...for Course ID ". $CRNmatch. "</caption> <tr><th>student ID</th> <th>first Name</th> <th>last Name</th> <th></th> <th>new Grade</th></tr>"; // Send a query to find the roster associated with course number $result3 = mysqli_query($dbconnect, "SELECT roster.studentid, student.firstname, student.lastname, UPPER(roster.grade) FROM student, roster WHERE student.studentid =roster.studentid AND CRN ='$CRNmatch' ORDER BY student.lastname;"); // Display rows using a loop while ($fieldrow2 = mysqli_fetch_row($result3)) echo "<tr><td>". $fieldrow2[0]. "</td> <td>". $fieldrow2[1]. "</td> <td>". $fieldrow2[2]. "</td> <td class='tdinput'></td> <td class='tdinput'> <input type='text' value='". $fieldrow2[3]. "' disabled> </td></tr>"; echo "</table>"; else echo "<div><p>user not found</p></div>"; // Release results mysqli_free_result($result2); mysqli_free_result($result3); 14 P a g e

16 mysqli_close($dbconnect);?> <form action='course.php'><p> <button type='submit'>select Course</button> </p></form> </div> </body> </html> 15 P a g e

17 Test Table Test Senario Test cases Pre-conditions Test Data Expected Result Test Result Date Tested Check login data valid id and valid password valid id but invalid password The system starts up and shows the log in screen id: password: mypassword id: password: wrong true invalid but valid password wrong password: mypassword Check login variables valid invalid and invalid password use format for login and ascii for password use non format for login and ascii for password use format for login and non-asciis for password The system starts up and shows the log in screen id: wrong password: wrong format password: ascii symbol followed by 2-3 alphabet password: ascii symbol followed by 2-3 alphabet password: non-ascii or symbols true 16 P a g e

18 Test Senario Test cases Pre-conditions Test Data Expected Result Test Result Date Tested Check professor's courses use non format for login and non-asciis for password current courses taught no courses taught Professor login verified and courses taught are displayed symbol followed by 2-3 alphabet password: ascii 1+ current classes taught true 0 classes taught Check student courses Check enter grades past courses taught enrolled in course not enrolled (waitlist) not enrolled (drop) valid student_id, valid grade Professor login verified and course selection verified, students of the course are displayed Professor login verified and course selection verified, students enrollment verified, grade is displayed no current, 1+past classes taught student enrolled in class student on waitlist student dropped from roster student_ grade: A true true valid student_id but invalid grade invalid student_id, valid grade student_ grade: X student_ grade: A invalid student_id and invalid grade student_ grade: X 17 P a g e

home.php 1/1 lectures/6/src/ include.php 1/1 lectures/6/src/

home.php 1/1 lectures/6/src/ include.php 1/1 lectures/6/src/ home.php 1/1 3: * home.php 5: * A simple home page for these login demos. 6: * David J. Malan 8: * Computer Science E-75 9: * Harvard Extension School 10: */ 11: // enable sessions 13: session_start();

More information

Copyright 2011 Sakun Sharma

Copyright 2011 Sakun Sharma Maintaining Sessions in JSP We need sessions for security purpose and multiuser support. Here we are going to use sessions for security in the following manner: 1. Restrict user to open admin panel. 2.

More information

Lab 7 Introduction to MySQL

Lab 7 Introduction to MySQL Lab 7 Introduction to MySQL Objectives: During this lab session, you will - Learn how to access the MySQL Server - Get hand-on experience on data manipulation and some PHP-to-MySQL technique that is often

More information

Part A Short Answer (50 marks)

Part A Short Answer (50 marks) Part A Short Answer (50 marks) NOTE: Answers for Part A should be no more than 3-4 sentences long. 1. (5 marks) What is the purpose of HTML? What is the purpose of a DTD? How do HTML and DTDs relate to

More information

How browsers talk to servers. What does this do?

How browsers talk to servers. What does this do? HTTP HEADERS How browsers talk to servers This is more of an outline than a tutorial. I wanted to give our web team a quick overview of what headers are and what they mean for client-server communication.

More information

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space. HTML Summary Structure All of the following are containers. Structure Contains the entire web page. Contains information

More information

Lecture 6: Web Security CS /17/2017

Lecture 6: Web Security CS /17/2017 Lecture 6: Web Security CS5431 03/17/2017 2015 Security Incidents Web Vulnerabilities by Year 2500 2000 1500 1000 500 0 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015

More information

Vebra Search Integration Guide

Vebra Search Integration Guide Guide Introduction... 2 Requirements... 2 How a Vebra search is added to your site... 2 Integration Guide... 3 HTML Wrappers... 4 Page HEAD Content... 4 CSS Styling... 4 BODY tag CSS... 5 DIV#s-container

More information

PHP: Cookies, Sessions, Databases. CS174. Chris Pollett. Sep 24, 2008.

PHP: Cookies, Sessions, Databases. CS174. Chris Pollett. Sep 24, 2008. PHP: Cookies, Sessions, Databases. CS174. Chris Pollett. Sep 24, 2008. Outline. How cookies work. Cookies in PHP. Sessions. Databases. Cookies. Sometimes it is useful to remember a client when it comes

More information

Schenker AB. Interface documentation Map integration

Schenker AB. Interface documentation Map integration Schenker AB Interface documentation Map integration Index 1 General information... 1 1.1 Getting started...1 1.2 Authentication...1 2 Website Map... 2 2.1 Information...2 2.2 Methods...2 2.3 Parameters...2

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

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

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

Cookies and S essions 323

Cookies and S essions 323 Cookies and Sessions 9 The Hypertext Transfer Protocol (HTTP) is a stateless technology, meaning that each individual HTML page is an unrelated entity. HTTP has no method for tracking users or retaining

More information

Internet publishing HTML (XHTML) language. Petr Zámostný room: A-72a phone.:

Internet publishing HTML (XHTML) language. Petr Zámostný room: A-72a phone.: Internet publishing HTML (XHTML) language Petr Zámostný room: A-72a phone.: 4222 e-mail: petr.zamostny@vscht.cz Essential HTML components Element element example Start tag Element content End tag

More information

Chapter 9. Managing State Information. Understanding State Information (continued) Understanding State Information 10/29/2011.

Chapter 9. Managing State Information. Understanding State Information (continued) Understanding State Information 10/29/2011. Chapter 9 Managing State Information PHP Programming with MySQL 2 nd Edition Objectives In this chapter, you will: Learn about state information Use hidden form fields to save state information Use query

More information

Princess Nourah bint Abdulrahman University. Computer Sciences Department

Princess Nourah bint Abdulrahman University. Computer Sciences Department Princess Nourah bint Abdulrahman University Computer Sciences Department 1 And use http://www.w3schools.com/ PHP Part 3 Objectives Creating a new MySQL Database using Create & Check connection with Database

More information

Web Application Development (WAD) V th Sem BBAITM (Unit 4) By: Binit Patel

Web Application Development (WAD) V th Sem BBAITM (Unit 4) By: Binit Patel Web Application Development (WAD) V th Sem BBAITM (Unit 4) By: Binit Patel Working with Forms: A very popular way to make a web site interactive is using HTML based forms by the site. Using HTML forms,

More information

GIMP WEB 2.0 MENUS. Before we begin this tutorial let s visually compare a standard navigation bar and a web 2.0 navigation bar.

GIMP WEB 2.0 MENUS. Before we begin this tutorial let s visually compare a standard navigation bar and a web 2.0 navigation bar. GIMP WEB 2.0 MENUS Before we begin this tutorial let s visually compare a standard navigation bar and a web 2.0 navigation bar. Standard Navigation Bar Web 2.0 Navigation Bar Now the all-important question

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: Connecting to a MySQL database in PHP with the mysql_connect() and mysql_select_db() functions Trapping and displaying database

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

Exam Format: Multiple Choice, True/False, Short Answer (3 points each 75 points total) Write-the-page (25 points)

Exam Format: Multiple Choice, True/False, Short Answer (3 points each 75 points total) Write-the-page (25 points) CS-101 Fall 2008 Section 4 Practice Final v1.0m Name: Exam Format: Multiple Choice, True/False, Short Answer (3 points each 75 points total) Write-the-page (25 points) XHTML/CSS Reference: Entities: Copyright

More information

Networks and Web for Health Informatics (HINF 6220) Tutorial 13 : PHP 29 Oct 2015

Networks and Web for Health Informatics (HINF 6220) Tutorial 13 : PHP 29 Oct 2015 Networks and Web for Health Informatics (HINF 6220) Tutorial 13 : PHP 29 Oct 2015 PHP Arrays o Arrays are single variables that store multiple values at the same time! o Consider having a list of values

More information

HTML HTML. Chris Seddon CRS Enterprises Ltd 1

HTML HTML. Chris Seddon CRS Enterprises Ltd 1 Chris Seddon seddon-software@keme.co.uk 2000-12 CRS Enterprises Ltd 1 2000-12 CRS Enterprises Ltd 2 Reference Sites W3C W3C w3schools DevGuru Aptana GotAPI Dog http://www.w3.org/ http://www.w3schools.com

More information

WIRIS quizzes web services Getting started with PHP and Java

WIRIS quizzes web services Getting started with PHP and Java WIRIS quizzes web services Getting started with PHP and Java Document Release: 1 2010 december, Maths for More www.wiris.com Summary This document provides client examples for PHP and Java. Contents WIRIS

More information

HTML. HTML Evolution

HTML. HTML Evolution Overview stands for HyperText Markup Language. Structured text with explicit markup denoted within < and > delimiters. Not what-you-see-is-what-you-get (WYSIWYG) like MS word. Similar to other text markup

More information

CIS 228 (Fall 2011) Exam 2, 11/3/11

CIS 228 (Fall 2011) Exam 2, 11/3/11 CIS 228 (Fall 2011) Exam 2, 11/3/11 Name (sign) Name (print) email Question 1 2 3 4 5 6 7 8 TOTAL Score CIS 228, exam 2 1 11/03/11 Question 1 True or false: In CSS, property declarations in the same rule

More information

Hello everyone! Page 1. Your folder should look like this. To start with Run your XAMPP app and start your Apache and MySQL.

Hello everyone! Page 1. Your folder should look like this. To start with Run your XAMPP app and start your Apache and MySQL. Hello everyone! Welcome to our PHP + MySQL (Easy to learn) E.T.L. free online course Hope you have installed your XAMPP? And you have created your forms inside the studio file in the htdocs folder using

More information

Introduction to HTML5

Introduction to HTML5 Introduction to HTML5 History of HTML 1991 HTML first published 1995 1997 1999 2000 HTML 2.0 HTML 3.2 HTML 4.01 XHTML 1.0 After HTML 4.01 was released, focus shifted to XHTML and its stricter standards.

More information

AN INTRODUCTION TO WEB PROGRAMMING. Dr. Hossein Hakimzadeh Department of Computer and Information Sciences Indiana University South Bend, IN

AN INTRODUCTION TO WEB PROGRAMMING. Dr. Hossein Hakimzadeh Department of Computer and Information Sciences Indiana University South Bend, IN AN INTRODUCTION TO WEB PROGRAMMING Dr. Hossein Hakimzadeh Department of Computer and Information Sciences Indiana University South Bend, IN HISTORY Developed by Michael Widenius. Initially release in 1995.

More information

HyperText Markup Language (HTML)

HyperText Markup Language (HTML) HyperText Markup Language (HTML) Mendel Rosenblum 1 Web Application Architecture Web Browser Web Server / Application server Storage System HTTP Internet LAN 2 Browser environment is different Traditional

More information

By the end of this chapter, you will have a very basic, but fully functional blogging system.

By the end of this chapter, you will have a very basic, but fully functional blogging system. C H A P T E R 5 Building the Entry Manager At this point, you know enough to start building your blog! In this chapter, I ll walk you through how to build the backbone of your blogging application. The

More information

Qualys Cloud Platform v2.x API Release Notes

Qualys Cloud Platform v2.x API Release Notes API Release Notes Version 2.35.1.0 January 2, 2019 Qualys Cloud Suite API gives you many ways to integrate your programs and API calls with Qualys capabilities. You ll find all the details in our user

More information

Introductory workshop on PHP-MySQL

Introductory workshop on PHP-MySQL Introductory workshop on PHP-MySQL Welcome to Global Certifications and Training from Rocky Sir Download all needed s/w from monster.suven.net Full Stack development : UI + Server Side 1 or more client

More information

WEB PROGRAMMING SCV1223. PHP : Authentication Example. Dr. Md Sah bin Hj Salam En. Jumail bin Taliba

WEB PROGRAMMING SCV1223. PHP : Authentication Example. Dr. Md Sah bin Hj Salam En. Jumail bin Taliba WEB PROGRAMMING SCV1223 PHP : Authentication Example Dr. Md Sah bin Hj Salam En. Jumail bin Taliba Topics Form Handling Redirection Connecting to Database User Authentication Session Authentication Case

More information

Locate your Advanced Tools and Applications

Locate your Advanced Tools and Applications MySQL Manager is a web based MySQL client that allows you to create and manipulate a maximum of two MySQL databases. MySQL Manager is designed for advanced users.. 1 Contents Locate your Advanced Tools

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

COM1004 Web and Internet Technology

COM1004 Web and Internet Technology COM1004 Web and Internet Technology When a user submits a web form, how do we save the information to a database? How do we retrieve that data later? ID NAME EMAIL MESSAGE TIMESTAMP 1 Mike mike@dcs Hi

More information

Micronet International College

Micronet International College Micronet International College Level 4 Diploma in Computing Designing and Developing a Website (DDW) Test 1 (20%) Name: /50 Class: QUESTION 1 a) I) What are W3C standards? 1 Specifications or descriptions

More information

Host at 2freehosting.Com

Host at 2freehosting.Com Host at 2freehosting.Com This document will help you to upload your website to a free website hosting account at www.2freehosting.com/. Follow all the steps carefully in the order that they appear to ensure

More information

CSCI DBMS Spring 2017 Final Examination. Last Name: First Name: Student Id:

CSCI DBMS Spring 2017 Final Examination. Last Name: First Name: Student Id: CSCI 5333.2 DBMS Spring 2017 Final Examination Last Name: First Name: Student Id: Number: Time allowed: two hours. Total score: 100 points. This is a closed book examination but you can bring a cheat sheet.

More information

IT350 Web and Internet Programming. XHTML Tables and Forms (from Chapter 4 of the text 4 th edition Chapter 2 of the text 5 th edition)

IT350 Web and Internet Programming. XHTML Tables and Forms (from Chapter 4 of the text 4 th edition Chapter 2 of the text 5 th edition) IT350 Web and Internet Programming XHTML Tables and Forms (from Chapter 4 of the text 4 th edition Chapter 2 of the text 5 th edition) 4.10 Tables 1 Table Basics table element border, summary, caption

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

LA TROBE UNIVERSITY SEMESTER ONE EXAMINATION PERIOD CAMPUS AW BE BU MI SH ALLOWABLE MATERIALS

LA TROBE UNIVERSITY SEMESTER ONE EXAMINATION PERIOD CAMPUS AW BE BU MI SH ALLOWABLE MATERIALS LIBRARY USE LA TROBE UNIVERSITY SEMESTER ONE EXAMINATION PERIOD 2013 Student ID: Seat Number: Unit Code: CSE2WD Paper No: 1 Unit Name: Paper Name: Reading Time: Writing Time: Web Development Final 15 minutes

More information

Lecture 6 Session Control and User Authentication. INLS 760 Web Databases Spring 2013 Rob Capra

Lecture 6 Session Control and User Authentication. INLS 760 Web Databases Spring 2013 Rob Capra Lecture 6 Session Control and User Authentication INLS 760 Web Databases Spring 2013 Rob Capra HTML Forms and PHP PHP: lect2/form1.php echo "Hello, ". htmlspecialchars(strip_tags($_get['name'])); echo

More information

Title: Dec 11 3:40 PM (1 of 11)

Title: Dec 11 3:40 PM (1 of 11) ... basic iframe body {color: brown; font family: "Times New Roman"} this is a test of using iframe Here I have set up two iframes next to each

More information

Using htmlarea & a Database to Maintain Content on a Website

Using htmlarea & a Database to Maintain Content on a Website Using htmlarea & a Database to Maintain Content on a Website by Peter Lavin December 30, 2003 Overview If you wish to develop a website that others can contribute to one option is to have text files sent

More information

Overview. Part I: Portraying the Internet as a collection of online information systems HTML/XHTML & CSS

Overview. Part I: Portraying the Internet as a collection of online information systems HTML/XHTML & CSS CSS Overview Part I: Portraying the Internet as a collection of online information systems Part II: Design a website using HTML/XHTML & CSS XHTML validation What is wrong?

More information

CSCI 5333 DBMS Fall 2017 Final Examination. Last Name: First Name: Student Id:

CSCI 5333 DBMS Fall 2017 Final Examination. Last Name: First Name: Student Id: CSCI 5333 DBMS Fall 2017 Final Examination Last Name: First Name: Student Id: Number: Time allowed: two hours. Total score: 100 points. This is a closed book examination but you can bring a cheat sheet.

More information

Introduction to PHP. Fulvio Corno, Laura Farinetti, Dario Bonino, Marco Aime 06/11/08

Introduction to PHP. Fulvio Corno, Laura Farinetti, Dario Bonino, Marco Aime 06/11/08 Introduction to PHP Fulvio Corno, Laura Farinetti, Dario Bonino, Marco Aime Goals Understand server-side architectures based on PHP Learn the syntax and the main constructs of the PHP language Design simple

More information

FACULTY CENTER. 1. CUNYfirst: https://home.cunyfirst.cuny.edu 2. Select: HR/Campus Solutions. 3. Navigate to: Self Service > Faculty Center

FACULTY CENTER. 1. CUNYfirst: https://home.cunyfirst.cuny.edu 2. Select: HR/Campus Solutions. 3. Navigate to: Self Service > Faculty Center FACULTY CENTER 1. CUNYfirst: https://home.cunyfirst.cuny.edu 2. Select: HR/Campus Solutions 3. Navigate to: Self Service > Faculty Center 4. Click on My Schedule or any of the other Advisor Center information

More information

Apple URL Scheme Reference

Apple URL Scheme Reference Apple URL Scheme Reference Contents Introduction 4 Organization of This Document 4 Mail Links 5 Phone Links 6 Text Links 8 Map Links 9 YouTube Links 12 itunes Links 13 Document Revision History 14 2 Tables

More information

Implementing a chat button on TECHNICAL PAPER

Implementing a chat button on TECHNICAL PAPER Implementing a chat button on TECHNICAL PAPER Contents 1 Adding a Live Guide chat button to your Facebook page... 3 1.1 Make the chat button code accessible from your web server... 3 1.2 Create a Facebook

More information

Web development using PHP & MySQL with HTML5, CSS, JavaScript

Web development using PHP & MySQL with HTML5, CSS, JavaScript Web development using PHP & MySQL with HTML5, CSS, JavaScript Static Webpage Development Introduction to web Browser Website Webpage Content of webpage Static vs dynamic webpage Technologies to create

More information

CON2DIS 2.0. Ruo Zhang Dhamma Kimpara Anagha Indic

CON2DIS 2.0. Ruo Zhang Dhamma Kimpara Anagha Indic CON2DIS 2.0 Ruo Zhang Dhamma Kimpara Anagha Indic Spring 2016 Project Objectives Utilize CON2DIS GUI from Fall 2015 Extend a database aspect to the GUI Find the link between Javascript and PHP Create a

More information

Arc en Ciel Ltd. Gazetteer Webservice FactSheet

Arc en Ciel Ltd. Gazetteer Webservice FactSheet Arc en Ciel Ltd. Gazetteer Webservice FactSheet Overview We provide two gazetteer webservices: on place name and on street name. The place name service allows a user to browse for any town, village or

More information

Lab 4 CSS CISC1600, Spring 2012

Lab 4 CSS CISC1600, Spring 2012 Lab 4 CSS CISC1600, Spring 2012 Part 1 Introduction 1.1 Cascading Style Sheets or CSS files provide a way to control the look and feel of your web page that is more convenient, more flexible and more comprehensive

More information

CSCI 5333 DBMS Spring 2018 Final Examination. Last Name: First Name: Student Id:

CSCI 5333 DBMS Spring 2018 Final Examination. Last Name: First Name: Student Id: CSCI 5333 DBMS Spring 2018 Final Examination Last Name: First Name: Student Id: Number: Time allowed: two hours. Total score: 100 points. This is a closed book examination but you can bring a cheat sheet.

More information

Faculty Web Page Management System. Help Getting Started

Faculty Web Page Management System. Help Getting Started Faculty Web Page Management System Help Getting Started 2 Table of Contents Faculty Web Page Management System...1 Help Getting Started...1 Table of Contents...2 Manage My Personal Information...3 Creating

More information

Interim Registration

Interim Registration Interim Registration Students will need to do two things with Banner Web to register for an Interim project: Look at the descriptions of the projects and write down the project name and Course Reference

More information

Design Project. i385f Special Topics in Information Architecture Instructor: Don Turnbull. Elias Tzoc

Design Project. i385f Special Topics in Information Architecture Instructor: Don Turnbull. Elias Tzoc Design Project Site: News from Latin America Design Project i385f Special Topics in Information Architecture Instructor: Don Turnbull Elias Tzoc April 3, 2007 Design Project - 1 I. Planning [ Upper case:

More information

COMP519: Web Programming Autumn 2015

COMP519: Web Programming Autumn 2015 COMP519: Web Programming Autumn 2015 In the next lectures you will learn What is SQL How to access mysql database How to create a basic mysql database How to use some basic queries How to use PHP and mysql

More information

Using PHP with MYSQL

Using PHP with MYSQL Using PHP with MYSQL PHP & MYSQL So far you've learned the theory behind relational databases and worked directly with MySQL through the mysql command-line tool. Now it's time to get your PHP scripts talking

More information

COMP519 Web Programming Lecture 28: PHP (Part 4) Handouts

COMP519 Web Programming Lecture 28: PHP (Part 4) Handouts COMP519 Web Programming Lecture 28: PHP (Part 4) Handouts Ullrich Hustadt Department of Computer Science School of Electrical Engineering, Electronics, and Computer Science University of Liverpool Contents

More information

Document Object Model. Overview

Document Object Model. Overview Overview The (DOM) is a programming interface for HTML or XML documents. Models document as a tree of nodes. Nodes can contain text and other nodes. Nodes can have attributes which include style and behavior

More information

Objectives. Chapter 10. Developing Object-Oriented PHP. Introduction to Object-Oriented Programming

Objectives. Chapter 10. Developing Object-Oriented PHP. Introduction to Object-Oriented Programming Chapter 10 Developing Object-Oriented PHP PHP Programming with MySQL 2 nd Edition Objectives In this chapter, you will: Study object-oriented programming concepts Use objects in PHP scripts Declare data

More information

PHP Development - Introduction

PHP Development - Introduction PHP Development - Introduction Php Hypertext Processor PHP stands for PHP: Hypertext Preprocessor PHP is a server-side scripting language, like ASP PHP scripts are executed on the server PHP supports many

More information

Web Services Application Programming Interface (API) Specification

Web Services Application Programming Interface (API) Specification Web Services Application Programming Interface (API) Specification Version 1.1 July 10, 2018 Web Services API Specifications 2 of 36 Table of s 1. Terrain Sources... 3 1.1. GET Method... 3 1.2. POST Method...

More information

New Media Production HTML5

New Media Production HTML5 New Media Production HTML5 Modernizr, an HTML5 Detection Library Modernizr is an open source, MIT-licensed JavaScript library that detects support

More information

Design and Implementation of READ, REVIEW & ASSESS SYSTEM GRADUATE PROJECT SPRING 2002 ABHIJEET TRIVEDI COMMITTEE MEMBERS

Design and Implementation of READ, REVIEW & ASSESS SYSTEM GRADUATE PROJECT SPRING 2002 ABHIJEET TRIVEDI COMMITTEE MEMBERS Texas A&M University Corpus Christi College of Science and Technology Department of Computing and Mathematical Sciences Design and Implementation of READ, REVIEW & ASSESS SYSTEM GRADUATE PROJECT SPRING

More information

Phishing attempt 1. 2. 3. 4.

More information

django-sekizai Documentation

django-sekizai Documentation django-sekizai Documentation Release 0.6.1 Jonas Obrist September 23, 2016 Contents 1 About 3 2 Dependencies 5 3 Usage 7 3.1 Configuration............................................... 7 3.2 Template

More information

LAMPIRAN. Index.php. <?php. unset($_session["status"]); //session_destroy(); //session_destroy();

LAMPIRAN. Index.php. <?php. unset($_session[status]); //session_destroy(); //session_destroy(); LAMPIRAN Index.php unset($_session["status"]); //session_destroy(); //session_destroy();?>

More information

Faculty PiratesNet Quick Study Guide

Faculty PiratesNet Quick Study Guide Faculty PiratesNet Quick Study Guide This is a study guide, for faculty, on how to access your class information via the web using PiratesNet. PiratesNet can be found by clicking the PratesNet icon on

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

Static Webpage Development

Static Webpage Development Dear Student, Based upon your enquiry we are pleased to send you the course curriculum for PHP Given below is the brief description for the course you are looking for: - Static Webpage Development Introduction

More information

<tr><td>last Name </td><td><input type="text" name="shippingaddress-last-name"

<tr><td>last Name </td><td><input type=text name=shippingaddress-last-name // API Setup Parameters $gatewayurl = 'https://secure.payscout.com/api/v2/three-step'; $APIKey = '2F822Rw39fx762MaV7Yy86jXGTC7sCDy'; // If there is no POST data or a token-id, print the initial Customer

More information

Shane Gellerman 10/17/11 LIS488 Assignment 3

Shane Gellerman 10/17/11 LIS488 Assignment 3 Shane Gellerman 10/17/11 LIS488 Assignment 3 Background to Understanding CSS CSS really stands for Cascading Style Sheets. It functions within an HTML document, so it is necessary to understand the basics

More information

CSCI 4000 Assignment 6

CSCI 4000 Assignment 6 Austin Peay State University, Tennessee Spring 2018 CSCI 4000: Advanced Web Development Dr. Leong Lee CSCI 4000 Assignment 6 Total estimated time for this assignment: 6 hours (if you are a good programmer)

More information

Lecture 7: Dates/Times & Sessions. CS 383 Web Development II Wednesday, February 14, 2018

Lecture 7: Dates/Times & Sessions. CS 383 Web Development II Wednesday, February 14, 2018 Lecture 7: Dates/Times & Sessions CS 383 Web Development II Wednesday, February 14, 2018 Date/Time When working in PHP, date is primarily tracked as a UNIX timestamp, the number of seconds that have elapsed

More information

php Mr. Amit Patel Hypertext Preprocessor Dept. of I.T.

php Mr. Amit Patel Hypertext Preprocessor Dept. of I.T. php Hypertext Preprocessor Mr. Amit Patel Dept. of I.T..com.com PHP files can contain text, HTML, JavaScript code, and PHP code PHP code are executed on the server, and the result is returned to the browser

More information

Creating Data Driven Websites with Dreamweaver CS4: Using ColdFusion, PHP or ASP

Creating Data Driven Websites with Dreamweaver CS4: Using ColdFusion, PHP or ASP Creating Data Driven Websites with Dreamweaver CS4: Using ColdFusion, PHP or ASP published by Antall Training http://www.scottantall.com info@scottantall.com 440/623-3738 1.0.0 Copyright 2003-2009 Antall

More information

myhancock - Final Grades Submission How do I Get to myhancock? How do I login to myhancock? myhancock link

myhancock - Final Grades Submission How do I Get to myhancock? How do I login to myhancock? myhancock link How do I Get to myhancock? Go to the homepage, www.hancockcollege.edu and click on the myhancock link. myhancock link Bookmark it! You can access myhancock from most computers or mobile devices with Internet

More information

CS4604 Prakash Spring 2016! Project 3, HTML and PHP. By Sorour Amiri and Shamimul Hasan April 20 th, 2016

CS4604 Prakash Spring 2016! Project 3, HTML and PHP. By Sorour Amiri and Shamimul Hasan April 20 th, 2016 CS4604 Prakash Spring 2016! Project 3, HTML and PHP By Sorour Amiri and Shamimul Hasan April 20 th, 2016 Project 3 Outline 1. A nice web interface to your database. (HTML) 2. Connect to database, issue,

More information

PHP Arrays. Lecture 20. Robb T. Koether. Hampden-Sydney College. Wed, Feb 28, 2018

PHP Arrays. Lecture 20. Robb T. Koether. Hampden-Sydney College. Wed, Feb 28, 2018 PHP Arrays Lecture 20 Robb T. Koether Hampden-Sydney College Wed, Feb 28, 2018 Robb T. Koether (Hampden-Sydney College) PHP Arrays Wed, Feb 28, 2018 1 / 27 1 PHP Arrays 2 Iteration Structures 3 Displaying

More information

Step 1. Final Grade Roster Submission. IT Department Printed on 05/21/2012 Page 1. Steps to Submit Grades. Step 1. Step 2. Step 3

Step 1. Final Grade Roster Submission. IT Department Printed on 05/21/2012 Page 1. Steps to Submit Grades. Step 1. Step 2. Step 3 /Notes 1. Log into CUNYfirst Enter your username and password AND Click on the Go button icon 2. From the Enterprise Menu, select the HR/Campus Solutions link IT Department Printed on 05/21/2012 Page 1

More information

JavaScript (5A) JavaScript

JavaScript (5A) JavaScript JavaScript (5A) JavaScript Copyright (c) 2012 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any

More information

Databases and SQL Lab EECS 448

Databases and SQL Lab EECS 448 Databases and SQL Lab EECS 448 Databases A database is an organized collection of data. Data facts are stored as fields. A set of fields that make up an entry in a table is called a record. Server - Database

More information

PLEASE KEEP IN MIND THERE ARE TWO WAYS TO UPDATE A STUDENT S ATTENDANCE STATUS:

PLEASE KEEP IN MIND THERE ARE TWO WAYS TO UPDATE A STUDENT S ATTENDANCE STATUS: CERTIFYING ROSTERS 1. Browse to https://tim.txstate.edu/classrosters or click the Certify Rosters link on the Faculty Services tab. 2. Log in using your NetID and password. 3. The Home navigational menu

More information

Guide to All Saints College Edumate Parent Portal

Guide to All Saints College Edumate Parent Portal Guide to All Saints College Edumate Parent Portal Logging In 1. Enter the Edumate address into your browser (https://edumate.saints.nsw.edu.au/) 2. Enter your username and password and click Login Dashboard

More information

Understanding Basic SQL Injection

Understanding Basic SQL Injection Understanding Basic SQL Injection SQL injection (also known as SQLI) is a code injection technique that occurs if the user-defined input data is not correctly filtered or sanitized of the string literal

More information

Web Systems Nov. 2, 2017

Web Systems Nov. 2, 2017 Web Systems Nov. 2, 2017 Topics of Discussion Using MySQL as a Calculator Command Line: Create a Database, a Table, Insert Values into Table, Query Database Using PhP API to Interact with MySQL o Check_connection.php

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

Course Topics. The Three-Tier Architecture. Example 1: Airline reservations. IT360: Applied Database Systems. Introduction to PHP

Course Topics. The Three-Tier Architecture. Example 1: Airline reservations. IT360: Applied Database Systems. Introduction to PHP Course Topics IT360: Applied Database Systems Introduction to PHP Database design Relational model SQL Normalization PHP MySQL Database administration Transaction Processing Data Storage and Indexing The

More information

Azblink API for Sending XMPP Messages via HTTP POST

Azblink API for Sending XMPP Messages via HTTP POST Azblink API for Sending XMPP Messages via HTTP POST Abstract: This document is to describe the API of Azblink SBC for sending XMPP messages via HTTP POST. This is intended for the systems or the devices

More information

Chapter 4 Sending Data to Your Application

Chapter 4 Sending Data to Your Application Chapter 4 Sending Data to Your Application Charles Severance and Jim Eng csev@umich.edu jimeng@umich.edu Textbook: Using Google App Engine, Charles Severance Unless otherwise noted, the content of this

More information

A designers guide to creating & editing templates in EzPz

A designers guide to creating & editing templates in EzPz A designers guide to creating & editing templates in EzPz Introduction...2 Getting started...2 Actions...2 File Upload...3 Tokens...3 Menu...3 Head Tokens...4 CSS and JavaScript included files...4 Page

More information

Course Topics. IT360: Applied Database Systems. Introduction to PHP

Course Topics. IT360: Applied Database Systems. Introduction to PHP IT360: Applied Database Systems Introduction to PHP Chapter 1 and Chapter 6 in "PHP and MySQL Web Development" Course Topics Relational model SQL Database design Normalization PHP MySQL Database administration

More information

2017 Politecnico di Torino 1

2017 Politecnico di Torino 1 SQL for the applications Call Level Interface Requests are sent to the DBMS through functions of the host language solution based on predefined interfaces API, Application Programming Interface SQL instructions

More information