PRÍLOHY PRÍLOHY. Príloha 1 Náhľady vybraných podstránok webovej stránky

Size: px
Start display at page:

Download "PRÍLOHY PRÍLOHY. Príloha 1 Náhľady vybraných podstránok webovej stránky"

Transcription

1 PRÍLOHY Príloha 1 Náhľady vybraných podstránok webovej stránky

2

3

4

5 Príloha 2 Vybrané časti zdrojového kódu V Prílohe 3 sa nachádza len niekoľko vybraných častí zdrojového kódu projektu. Kompletný zdrojový kód projektu sa nachádza na priloženom CD. Zdrojový kód podstránky pre prihlásenie. include 'config.php'; session_start(); $logerr = ""; if (isset($_post['submit'])){ $passhash = $logerr= $heslo = ""; $login = $password = $result = $row = ""; $login = isset($_post['login'])? $_POST['login'] : ''; $password = isset($_post['password'])? $_POST['password'] : ''; $passhash = sha256($password); $result = $mysqli->query("select * FROM mysteryshopper WHERE login='$login'") ; $row = $result->fetch_assoc(); $heslo = $row['heslo']; if ($passhash == $heslo) { $_SESSION['loggedin'] = true; $_SESSION['login_user']= $login; header("location: index.php?". SID); exit(); else { $logerr =("*Incorrect login or password!"); <!DOCTYPE html> <html lang='cs'> include 'head.php'; <body> include 'menu.php'; <div id="section2_2"> <div class="middlebox"> <p>please SIGN IN TO CONTINUE</p> <form action="index_log.php" method="post"> <label for="login"><input type="text" name="login" placeholder="your Login" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Your Login'"> <label for="password"><input type="password" name="password" placeholder="password" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Password'"> <input type="submit" name="submit" value="submit"> <span class="error"> echo $logerr;</span> </form> <a id="forgot" href="index.php#section5" >Forgot your password?</a>

6 include 'footer.php'; </body> </html> Zdrojový kód podstránky pre registráciu. include 'config.php'; session_start(); $passmatcherr = $loginerr = $fnameerr = $ err = $lnameerr = $passworderr = $passconerr = $passhash = ""; $fname = $ = $lname = $login = $password = $passwordcon = ""; if ($_SERVER["REQUEST_METHOD"] == "POST") { if (empty($_post["login"])) { $loginerr = "*Login is required"; else { $login = isset($_post['login'])? $_POST['login'] : ''; if (empty($_post[" "])) { $ err = "* is required"; elseif(!filter_var($_post[" "], FILTER_VALIDATE_ )) { $ err = "*Invalid format"; else{ $ = isset($_post[' '])? $_POST[' '] : ''; if (empty($_post["fname"])) { $fnameerr = "*First Name is required"; else { $fname = isset($_post['fname'])? $_POST['fname'] : ''; if (empty($_post["lname"])) { $lnameerr = "*Last Name is required"; else { $lname = isset($_post['lname'])? $_POST['lname'] : ''; if (empty($_post["password"])) { $passworderr = "*Password is required"; else { $password = isset($_post['password'])? $_POST['password'] : ''; if (empty($_post["passwordcon"])) { $passconerr = "*Confirmation is required"; else { $passwordcon = isset($_post['passwordcon'])? $_POST['passwordcon'] : ''; if (isset($_post['submit'])){ $query = $count= ""; $query =$mysqli->query("select * FROM mysteryshopper WHERE Login='$login'");

7 $count = mysqli_num_rows($query); if ($count==0){ if ($passwordcon == $password){ $passhash=sha256($password); $mysqli->query("insert INTO mysteryshopper(login,heslo,meno,priezvisko,` `) VALUES('$login','$passhash','$fname','$lname','$ ')"); $mysqli->query("insert INTO profil(login) VALUES('$login')"); $_SESSION['loggedin'] = true; $_SESSION['login_user']= $login; <html> <meta http-equiv="refresh" content="0.1;url=index.php"> </html> elseif ($password!=$passwordcon){ $passmatcherr = "Password does not match the confirmation password!"; else{ echo '<script language="javascript">'; echo 'alert("login already exists!")'; echo '</script>'; include 'head.php'; <body> include 'menu.php'; <div id="section2_3"> <div class="middle_container"> <p>sign UP & CREATE YOUR ACCOUNT</p> <form action="index_reg.php" method="post"> <span class="error"> echo $passmatcherr;</span> <label for="login"><input type="text" name="login" value=" echo (isset($_post['login'])? $_POST['login'] : '')" placeholder="your Login" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Your Login'"> <span class="error"> echo $loginerr;</span><br> <label for="password"><input type="password" name="password" placeholder="password" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Password'"> <span class="error"> echo $passworderr;</span><br> <label for="passwordcon"><input type="password" name="passwordcon" placeholder="password Confirmation" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Password Confirmation'"> <span class="error"> echo $passconerr;</span><br> <label for="fname"><input type="text" name="fname" value=" echo (isset($_post['fname'])? $_POST['fname'] : '')" placeholder="first Name" onfocus="this.placeholder = ''" onblur="this.placeholder = 'First Name'"> <span class="error"> echo $fnameerr;</span><br> <label for="lname"><input type="text" name="lname" value=" echo (isset($_post['lname'])? $_POST['lname'] : '')" placeholder="last Name" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Last Name'"> <span class="error"> echo $lnameerr;</span><br>

8 <label for=" "><input type="text" name=" " value=" echo (isset($_post[' '])? $_POST[' '] : '')" placeholder=" " onfocus="this.placeholder = ''" onblur="this.placeholder = ' '"> <span class="error"> echo $ err;</span><br> <input type="submit" name="submit" value="submit"><br> </form> include 'footer.php' </body> </html> Zdrojový kód pre menu implementované na domovskú stránku a všetky podstránky include 'config.php'; $user =""; if (isset($_session['login_user']) && $_SESSION['login_user']!= "") { $user = $_SESSION['login_user']; else{ $user =""; <!DOCTYPE html> <html lang='cs'> include 'head.php'; <body> <div id="section1"> <div class="container top"> <div class="woman"> <a href="index.php" id="home"><img id="logo" src="img/logo.png" alt="logo" ></a> <div class="clear"> <div class="nav container"> <ul> <li><a href="index.php#section2" >COMPANY</a></li> <li><a href="index.php#section3" >SERVICES</a></li> <li><a href="index.php#section4" >COOPERATION</a></li> <li><a href="index.php#section5" >CONTACT</a></li> if (isset($_session['login_user']) && $_SESSION['login_user']!= "") { $login =$result =$row =$rola =""; $login = $_SESSION['login_user']; $result = $mysqli->query("select * FROM mysteryshopper WHERE Login='$login'") ; $row = $result->fetch_assoc(); $rola = $row['idrole']; if ($rola =="2"){ <li class="dropdown"> <a href="javascript:void(0)" class="dropbtn" id="login" onclick="myfunction()"> echo $user </a> <div class="dropdown-content" id="mydropdown"> <a href="profile.php">my Profile</a>

9 <a href="job_offer.php">job Offers</a> <a href="actual_job.php">my Jobs</a> <a href="job_review.php">jobs Review</a> <a href="logout.php">log Out</a> <br> </li> elseif($rola =="1"){ <li class="dropdown"> <a href="javascript:void(0)" class="dropbtn" id="login" onclick="myfunction()"> echo $user </a> <div class="dropdown-content" id="mydropdown"> <a href="new_client.php">new Client</a> <a href="new_order.php">new Order</a> <a href="requests.php">job Requests</a> <a href="profile_select.php">search Profile</a> <a href="logout.php">log Out</a> <br> </li> </li> </ul> </ul> </body> <script> /* When the user clicks on the button, toggle between hiding and showing the dropdown content */ function myfunction() { document.getelementbyid("mydropdown").classlist.toggle("show"); window.onclick = function(e) { if (!e.target.matches('.dropbtn')) { var dropdowns = document.getelementsbyclassname("dropdowncontent"); for (var d = 0; d < dropdowns.length; d++) { var opendropdown = dropdowns[d]; if (opendropdown.classlist.contains('show')) { opendropdown.classlist.remove('show'); </script> </html>

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

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

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

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

Executing Simple Queries

Executing Simple Queries Script 8.3 The registration script adds a record to the database by running an INSERT query. 1

More information

JavaScript CSCI 201 Principles of Software Development

JavaScript CSCI 201 Principles of Software Development JavaScript CSCI 201 Principles of Software Development Jeffrey Miller, Ph.D. jeffrey.miller@usc.edu Outline JavaScript Program USC CSCI 201L JavaScript JavaScript is a front-end interpreted language that

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

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

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

n A m I B I A U n I V ER SI TY OF SCIEnCE AnD TECHnOLOGY

n A m I B I A U n I V ER SI TY OF SCIEnCE AnD TECHnOLOGY n A m I B I A U n I V ER SI TY OF SCIEnCE AnD TECHnOLOGY FACULTY OF COMPUTING AND INFORMATICS DEPARTMENT OF INFORMATICS QUALIFICATION: Bachelor of lnformatics and BIT : Business Computing QUALIFICATION

More information

Advantages: simple, quick to get started, perfect for simple forms, don t need to know how form model objects work

Advantages: simple, quick to get started, perfect for simple forms, don t need to know how form model objects work 1 Forms 1.1 Introduction You cannot enter data in an application without forms. AngularJS allowed the user to create forms quickly, using the NgModel directive to bind the input element to the data in

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

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

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

Retrieving Query Results

Retrieving Query Results Using PHP with MySQL Retrieving Query Results The preceding section of this chapter demonstrates how to execute simple queries on a MySQL database. A simple query, as I m calling it, could be defined as

More information

New way of learning PHP EXAMPLE PDF. Created By: Umar Farooque Khan. Copyright ptutorial All Rights Reserved

New way of learning PHP EXAMPLE PDF. Created By: Umar Farooque Khan. Copyright ptutorial All Rights Reserved PHP EXAMPLE PDF Created By: Umar Farooque Khan 1 Program No: 01 PHP Generate 10 Random Numbers Using Loop $min=10; $max="100"; echo "Number between 10 to 100"; for($i=0;$i

More information

Network Lab Information System. Festus, Anyanwu Stanley

Network Lab Information System. Festus, Anyanwu Stanley Network Lab Information System Festus, Anyanwu Stanley 2015 Laurea University of Applied Sciences Leppävaara Network Lab Information System Stanley Anyanwu Festus Degree Programme in BIT Bachelor s Thesis

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

ajax1.html 1/2 lectures/9/src/ajax/ ajax1.html 2/2 lectures/9/src/ajax/

ajax1.html 1/2 lectures/9/src/ajax/ ajax1.html 2/2 lectures/9/src/ajax/ ajax1.html 1/2 3: ajax1.html 5: Gets stock quote from quote1.php via Ajax, displaying result with alert(). 6: 7: Computer Science 50 8: David J. Malan 9: 10: --> 1 1 15: 16:

More information

PHP Introduction. Some info on MySQL which we will cover in the next workshop...

PHP Introduction. Some info on MySQL which we will cover in the next workshop... PHP and MYSQL PHP Introduction PHP is a recursive acronym for PHP: Hypertext Preprocessor -- It is a widely-used open source general-purpose serverside scripting language that is especially suited for

More information

SmileTiger emeeting Server 2008 Integration Guide

SmileTiger emeeting Server 2008 Integration Guide SmileTiger emeeting Server 2008 Integration Guide SmileTiger Software Corporation 11615 Sir Francis Drake Drive Charlotte, NC 28277 USA Tel: + 1 704 321 9068 Fax: +1 704 321 5129 http://www.smiletiger.com

More information

CSS (Cascading Style Sheets)

CSS (Cascading Style Sheets) CSS (Cascading Style Sheets) CSS (Cascading Style Sheets) is a language used to describe the appearance and formatting of your HTML. It allows designers and users to create style sheets that define how

More information

PIC 40A. Lecture 19: PHP Form handling, session variables and regular expressions. Copyright 2011 Jukka Virtanen UCLA 1 05/25/12

PIC 40A. Lecture 19: PHP Form handling, session variables and regular expressions. Copyright 2011 Jukka Virtanen UCLA 1 05/25/12 PIC 40A Lecture 19: PHP Form handling, session variables and regular expressions 05/25/12 Copyright 2011 Jukka Virtanen UCLA 1 How does a browser communicate with a program on a server? By submitting an

More information

PROJECT ON EMPLOYEE DATABASE AND PAYROLL MANAGEMENT SYSTEM

PROJECT ON EMPLOYEE DATABASE AND PAYROLL MANAGEMENT SYSTEM PROJECT ON EMPLOYEE DATABASE AND PAYROLL MANAGEMENT SYSTEM REPORT OF MAJOR PROJECT SUBMITTED FOR FULFILLMENT OF THE REQUIREMENT FOR THE DEGREE OF MASTER IN COMPUTER APPLICATION MARCUS ATISH D ROZARIO REGISTRATION

More information

PrintShop Mail Web. Web Integration Guide

PrintShop Mail Web. Web Integration Guide PrintShop Mail Web Web Integration Guide Copyright Information Copyright 1994-2010 Objectif Lune Inc. All Rights Reserved. No part of this publication may be reproduced, transmitted, transcribed, stored

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

JSON POST WITH PHP IN ANGULARJS

JSON POST WITH PHP IN ANGULARJS JSON POST WITH PHP IN ANGULARJS The POST method is used to insert the data. In AngularJS, we should post the form data in JSON format to insert into the PHP file. The PHP server side code used to get the

More information

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

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

More information

html head script script script function function script title title head body form input input form body html

html head script script script function function script title title head body form input input form body html ajax0.html 1 3 4 5 6 7 8 function quote() 9 { 10 $.getjson("/quote", {symbol: $("#symbol").val()},

More information

Produced by. Agile Software Development. Eamonn de Leastar

Produced by. Agile Software Development. Eamonn de Leastar Agile Software Development Produced by Eamonn de Leastar (edeleastar@wit.ie) Department of Computing, Maths & Physics Waterford Institute of Technology http://www.wit.ie http://elearning.wit.ie Pacemaker

More information

Web accessible Databases PHP

Web accessible Databases PHP Web accessible Databases PHP October 16, 2017 www.php.net Pacific University 1 HTML Primer https://www.w3schools.com/html/default.asp HOME Introduction Basic Tables Lists https://developer.mozilla.org/en-

More information

Description: This feature will enable user to send messages from website to phone number.

Description: This feature will enable user to send messages from website to phone number. Web to Phone text message Description: This feature will enable user to send messages from website to phone number. User will use this feature and can send messages from website to phone number, this will

More information

A QUICK GUIDE TO PROGRAMMING FOR THE WEB. ssh (then type your UBIT password when prompted)

A QUICK GUIDE TO PROGRAMMING FOR THE WEB. ssh (then type your UBIT password when prompted) A QUICK GUIDE TO PROGRAMMING FOR THE WEB TO GET ACCESS TO THE SERVER: ssh Secure- Shell. A command- line program that allows you to log in to a server and access your files there as you would on your own

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

PHP with data handling

PHP with data handling 171 Lesson 18 PHP with data handling Aim Objectives : To provide an introduction data handling with PHP : To give an idea about, What type of data you need to handle? How PHP handle the form data? 18.1

More information

Programmer s Guide for PHP

Programmer s Guide for PHP DB Visual ARCHITECT 4.0 Programmer's Guide for PHP The software and documentation are furnished under the DB Visual ARCHITECT license agreement and may be used only in accordance with the terms of the

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

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

LAMP Apps. Overview. Learning Outcomes: At the completion of the lab you should be able to:

LAMP Apps. Overview. Learning Outcomes: At the completion of the lab you should be able to: LAMP Apps Overview This lab walks you through using Linux, Apache, MySQL and PHP (LAMP) to create simple, yet very powerful PHP applications connected to a MySQL database. For developers using Windows,

More information

COSC344 Database Theory and Applications PHP & SQL. Lecture 14

COSC344 Database Theory and Applications PHP & SQL. Lecture 14 COSC344 Database Theory and Applications Lecture 14: PHP & SQL COSC344 Lecture 14 1 Last Lecture Java & SQL Overview This Lecture PHP & SQL Revision of the first half of the lectures Source: Lecture notes,

More information

PHP Querying. Lecture 21. Robb T. Koether. Hampden-Sydney College. Fri, Mar 2, 2018

PHP Querying. Lecture 21. Robb T. Koether. Hampden-Sydney College. Fri, Mar 2, 2018 PHP Querying Lecture 21 Robb T. Koether Hampden-Sydney College Fri, Mar 2, 2018 Robb T. Koether (Hampden-Sydney College) PHP Querying Fri, Mar 2, 2018 1 / 32 1 Connect to the Database 2 Querying the Database

More information

Slide 1. Chapter 5. How to use the MVC pattern to organize your code. 2010, Mike Murach & Associates, Inc. Murach's PHP and MySQL, C5

Slide 1. Chapter 5. How to use the MVC pattern to organize your code. 2010, Mike Murach & Associates, Inc. Murach's PHP and MySQL, C5 Slide 1 Chapter 5 How to use the MVC pattern to organize your code and MySQL, C5 Slide 2 Objectives Applied 1. Use the MVC pattern to develop your web applications. 2. Create and use functions that do

More information

Project Part 2 (of 2) - Movie Poster And Actor! - Lookup

Project Part 2 (of 2) - Movie Poster And Actor! - Lookup Getting Started 1. Go to http://quickdojo.com 2. Click this: Project Part 2 (of 2) - Movie Poster And Actor! - Lookup This is an extension of what you did the last time (the Movie Poster lookup from Week

More information

SMS GATEWAY API INTEGRATION GUIDE

SMS GATEWAY API INTEGRATION GUIDE SMS GATEWAY API INTEGRATION GUIDE For PHP Developers Are you a developer or bulk SMS reseller? You can interface your application, website or system with our 247 reliable messaging gateway by using our

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

Introduction to using HTML to design webpages

Introduction to using HTML to design webpages Introduction to using HTML to design webpages #HTML is the script that web pages are written in. It describes the content and structure of a web page so that a browser is able to interpret and render the

More information

If Only. More SQL and PHP

If Only. More SQL and PHP If Only More SQL and PHP PHP: The if construct If only I could conditionally select PHP statements to execute. That way, I could have certain actions happen only under certain circumstances The if statement

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

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

CSC 405 Computer Security. Web Security

CSC 405 Computer Security. Web Security CSC 405 Computer Security Web Security Alexandros Kapravelos akaprav@ncsu.edu (Derived from slides by Giovanni Vigna and Adam Doupe) 1 source: https://xkcd.com/327/ 2 source: https://xkcd.com/327/ 3 source:

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

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

CPET 499/ITC 250 Web Systems

CPET 499/ITC 250 Web Systems CPET 499/ITC 250 Web Systems Chapter 11 Working with Databases Part 2 of 3 Text Book: * Fundamentals of Web Development, 2015, by Randy Connolly and Ricardo Hoar, published by Pearson Paul I-Hai, Professor

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

INTRODUCTION. 1.1 Purpose: 1.2 Scope: 1.3 Motivation: Chapter 1

INTRODUCTION. 1.1 Purpose: 1.2 Scope: 1.3 Motivation: Chapter 1 Introduction INTRODUCTION Chapter 1 1.1 Purpose: This module aims at being a tool for the course outcomes in each of the subjects that the students of RVCE are registered for, thereby aiding the faculty

More information

Programming. Week 11 LBSC 690 Information Technology

Programming. Week 11 LBSC 690 Information Technology Programming Week 11 LBSC 690 Information Technology Outline Programming Javascript PHP Software Software models aspects of reality Input and output represent the state of the world Software describes how

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

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

Lab 4: Basic PHP Tutorial, Part 2

Lab 4: Basic PHP Tutorial, Part 2 Lab 4: Basic PHP Tutorial, Part 2 This lab activity provides a continued overview of the basic building blocks of the PHP server-side scripting language. Once again, your task is to thoroughly study the

More information

HTML Forms IT WS I - Lecture 11

HTML Forms IT WS I - Lecture 11 HTML Forms IT WS I - Lecture 11 Saurabh Barjatiya International Institute Of Information Technology, Hyderabad 04 October, 2009 Contents Seeing submitted values 1 Seeing submitted values 2 3 Seeing submitted

More information

Exam 2 Reference Packet

Exam 2 Reference Packet CS 328 - Exam 2-2015-04-08 p. 1 For Problem 5 Exam 2 Reference Packet Number of cups:

More information

Working with Zend_Form. Rob Allen

Working with Zend_Form. Rob Allen Working with Zend_Form Rob Allen Rob Allen? What is Zend_Form? Architecture Forms: the centre piece Forms are made up of: Elements, Display groups, Sub-forms Each element is made up of: Filters, Validators,

More information

Zend PHP 5.3 Certification Exam.

Zend PHP 5.3 Certification Exam. Zend 200-530 Zend PHP 5.3 Certification Exam TYPE: DEMO http://www.examskey.com/200-530.html Examskey Zend 200-530 exam demo product is here for you to test quality of the product. This Zend 200-530 demo

More information

Date Picker Haim Michael

Date Picker Haim Michael Date Picker Introduction The date picker is one of the most popular jquery widgets in use. It is highly configurable and extremely easy to implement. Introduction Simple Date Picker

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

PHP Queries and HTML Forms Lecture 23

PHP Queries and HTML Forms Lecture 23 PHP Queries and HTML Forms Lecture 23 Robb T. Koether Hampden-Sydney College Wed, Mar 14, 2018 Robb T. Koether (Hampden-Sydney College) PHP Queries and HTML FormsLecture 23 Wed, Mar 14, 2018 1 / 15 1 Retrieving

More information

CSC 405 Computer Security. Web Security

CSC 405 Computer Security. Web Security CSC 405 Computer Security Web Security Alexandros Kapravelos akaprav@ncsu.edu (Derived from slides by Giovanni Vigna and Adam Doupe) 1 The XMLHttpRequest Object Microsoft developers working on Outlook

More information

Guest Access Portal Integration

Guest Access Portal Integration Integrate the cnpilot enterprise Access Points with an external Guest Access Portal Guest Access Portal Integration cnpilot E400, E500, epmp1000 Hotspot Cambium Networks Ltd. All rights reserved. Table

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

CPSC 481: CREATIVE INQUIRY TO WSBF

CPSC 481: CREATIVE INQUIRY TO WSBF CPSC 481: CREATIVE INQUIRY TO WSBF J. Yates Monteith, Fall 2013 Schedule HTML and CSS PHP HTML Hypertext Markup Language Markup Language. Does not execute any computation. Marks up text. Decorates it.

More information

Dingle Coderdojo 6. Project Part 2 (of 2) - Movie Poster And Actor! - Lookup. Week 6

Dingle Coderdojo 6. Project Part 2 (of 2) - Movie Poster And Actor! - Lookup. Week 6 Dingle Coderdojo 6 Week 6 Project Part 2 (of 2) - Movie Poster And Actor! - Lookup This is an extension of what you did the last time (the Movie Poster lookup from Week 5). Make sure you ve finished that

More information

Produced by. Web Development. Eamonn de Leastar Department of Computing, Maths & Physics Waterford Institute of Technology

Produced by. Web Development. Eamonn de Leastar Department of Computing, Maths & Physics Waterford Institute of Technology Web Development Produced by Eamonn de Leastar (edeleastar@wit.ie) Department of Computing, Maths & Physics Waterford Institute of Technology http://www.wit.ie http://elearning.wit.ie Sessions Web Development

More information

Last class we looked at HTML5.

Last class we looked at HTML5. ADVANCED HTML5. #2 2.1 Recap 2 3 Last class we looked at HTML5. headings There are 6 levels available, ranging from h1 to h6. paragraphs links

More information

BABU BANARASI DAS NORTHERN INDIA INSTITUTE OF TECHNOLOGY

BABU BANARASI DAS NORTHERN INDIA INSTITUTE OF TECHNOLOGY WORKSHOP REPORT ON PYTHON DEPARTMENTS OF COMPUTER SCIENCE & ENGINEERING / INFORMATION TECHNOLOGY (CSE/IT - 2 ND YEAR) BABU BANARASI DAS NORTHERN INDIA INSTITUTE OF TECHNOLOGY PROGRAMMING THROUGH PYTHON

More information

DEV BHOOMI INSTITUTE OF TECHNOLOGY Department of Computer Science and Engineering. Algorithm lab- PCS-553 LAB MANUAL

DEV BHOOMI INSTITUTE OF TECHNOLOGY Department of Computer Science and Engineering. Algorithm lab- PCS-553 LAB MANUAL Department of Computer Science and Engineering Year: 3rd Semester: 5th Algorithm lab- PCS-553 Prepared By: HOD(CSE) 1 Department of Computer Science and Engineering INDEX S.No Practical s Name Tools Remark

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

lectures/3/src/mvc/7/html/index.php <?php require_once('../includes/helpers.php');

lectures/3/src/mvc/7/html/index.php <?php require_once('../includes/helpers.php'); lectures/3/src/mvc/7/html/index.php 10. 1 1 1 1 1 1 1 1 1 20. 2 2 2 2 2 2 2 2 2 30. 3 3 3 3 3 3

More information

Dr. S. Sreekanth, Ph.D Professor, Dept of CSE, SITAMS, Chittoor (Dist.), Andhra Pradesh, India

Dr. S. Sreekanth, Ph.D Professor, Dept of CSE, SITAMS, Chittoor (Dist.), Andhra Pradesh, India Volume 6, Issue 5, May 2016 ISSN: 2277 128X International Journal of Advanced Research in Computer Science and Software Engineering Research Paper Available online at: www.ijarcsse.com Student Assessment

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

Django Part II SPARCS 11 undead. Greatly Inspired by SPARCS 10 hodduc

Django Part II SPARCS 11 undead. Greatly Inspired by SPARCS 10 hodduc Django Part II 2015-05-27 SPARCS 11 undead Greatly Inspired by SPARCS 10 hodduc Previously on Django Seminar Structure of Web Environment HTTP Requests and HTTP Responses Structure of a Django Project

More information

How to use PHP with a MySQL database

How to use PHP with a MySQL database Chapter 4 How to use PHP with a MySQL database The syntax for creating an object from any class new ClassName(arguments); The syntax for creating a database object from the PDO class new PDO($dsn, $username,

More information

User authentication, passwords

User authentication, passwords User authentication, passwords User Authentication Nowadays most internet applications are available only for registered (paying) users How do we restrict access to our website only to privileged users?

More information

WEBD 236 Web Information Systems Programming

WEBD 236 Web Information Systems Programming WEBD 236 Web Information Systems Programming Week 6 Copyright 2013-2017 Todd Whittaker and Scott Sharkey (sharkesc@franklin.edu) Agenda This week s expected outcomes This week s topics This week s homework

More information

LAMP, WEB ARCHITECTURE, AND HTTP

LAMP, WEB ARCHITECTURE, AND HTTP CS 418 Web Programming Spring 2013 LAMP, WEB ARCHITECTURE, AND HTTP SCOTT G. AINSWORTH http://www.cs.odu.edu/~sainswor/cs418-s13/ 2 OUTLINE Assigned Reading Chapter 1 Configuring Your Installation pgs.

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

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

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

Hacking Web Sites Cross Site Scripting

Hacking Web Sites Cross Site Scripting Hacking Web Sites Cross Site Scripting Emmanuel Benoist Spring Term 2018 Berner Fachhochschule Haute cole spcialise bernoise Berne University of Applied Sciences 1 Table of Contents Presentation Stored

More information

Development Technologies. Agenda: phpmyadmin 2/20/2016. phpmyadmin MySQLi. Before you can put your data into a table, that table should exist.

Development Technologies. Agenda: phpmyadmin 2/20/2016. phpmyadmin MySQLi. Before you can put your data into a table, that table should exist. CIT 736: Internet and Web Development Technologies Lecture 10 Dr. Lupiana, DM FCIM, Institute of Finance Management Semester 1, 2016 Agenda: phpmyadmin MySQLi phpmyadmin Before you can put your data into

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

MVC :: Understanding Views, View Data, and HTML Helpers

MVC :: Understanding Views, View Data, and HTML Helpers MVC :: Understanding Views, View Data, and HTML Helpers The purpose of this tutorial is to provide you with a brief introduction to ASP.NET MVC views, view data, and HTML Helpers. By the end of this tutorial,

More information

CMPT 165 Unit 8 Advanced Programming - Part 2. Dec. 1 st, 2015

CMPT 165 Unit 8 Advanced Programming - Part 2. Dec. 1 st, 2015 CMPT 165 Unit 8 Advanced Programming - Part 2 Dec. 1 st, 2015 Note #1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 # MIME: must be declared in the first line a_markup_str ="""Content-type: text/html

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

School of Information and Computer Technology Sirindhorn International Institute of Technology Thammasat University

School of Information and Computer Technology Sirindhorn International Institute of Technology Thammasat University School of Information and Computer Technology Sirindhorn International Institute of Technology Thammasat University ITS351 Database Programming Laboratory Laboratory #9: PHP & Form Processing III Objective:

More information

UNIVERSITY OF TORONTO Faculty of Arts and Science APRIL 2016 EXAMINATIONS. CSC309H1 S Programming on the Web Instructor: Ahmed Shah Mashiyat

UNIVERSITY OF TORONTO Faculty of Arts and Science APRIL 2016 EXAMINATIONS. CSC309H1 S Programming on the Web Instructor: Ahmed Shah Mashiyat UNIVERSITY OF TORONTO Faculty of Arts and Science APRIL 2016 EXAMINATIONS CSC309H1 S Programming on the Web Instructor: Ahmed Shah Mashiyat Duration - 2 hours Aid Sheet: Both side of one 8.5 x 11" sheet

More information

Chapter6: Bootstrap 3. Asst.Prof.Dr. Supakit Nootyaskool Information Technology, KMITL

Chapter6: Bootstrap 3. Asst.Prof.Dr. Supakit Nootyaskool Information Technology, KMITL Chapter6: Bootstrap 3 Asst.Prof.Dr. Supakit Nootyaskool Information Technology, KMITL Objective To apply Bootstrap to a web site To know how to build various bootstrap commands to be a content Topics Bootstrap

More information

Installation & Configuration Guide Version 3.1

Installation & Configuration Guide Version 3.1 ARPMiner Installation & Configuration Guide Version 3.1 Document Revision 2.2 https://www.kaplansoft.com/ ARPMiner is built by Yasin KAPLAN Read Readme.txt for last minute changes and updates which can

More information