Lecture 6: More Arrays & HTML Forms. CS 383 Web Development II Monday, February 12, 2018

Size: px
Start display at page:

Download "Lecture 6: More Arrays & HTML Forms. CS 383 Web Development II Monday, February 12, 2018"

Transcription

1 Lecture 6: More Arrays & HTML Forms CS 383 Web Development II Monday, February 12, 2018

2 Lambdas You may have encountered a lambda (sometimes called anonymous functions) in other programming languages The simplest way of thinking about a lambda is if we need a callback function for something that isn t a function in PHP (such as array_map) but we don t want to define a function like addone($n) that adds one to a number Essentially, in place of the string for the function we want to use, we add a function definition what excludes the function name 1

3 Lambda with array_map Example: Suppose we wanted to take an array and square each element: <?php $a = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); $b = array_map(function($x) {return $x*$x;}, $a);?> Value now held in b: $b = array(1, 4, 9, 16, 25, 36, 49, 64, 81, 100); 2

4 serialize & unserialize serialize creates a storable representation of a value Although it works with most types/objects, it is particularly useful for arrays For example, if you have entries in a MySQL table with a wide range of different variables that would make creating a column for each inefficient/unrealistic, you can serialize the array to add it, and unserialize the array when it is extracted 3

5 serialize & unserialize Example: <?php $a = array( array("sub" => "CS", "num" => "383", "title" => "Web Development II"), array("sub" => "MTH", "num" => "111", "title" => "Calculus I"), ); $s = serialize($a); print $s;?> 4

6 serialize & unserialize Result: a:2:{i:0;a:3:{s:3:"sub";s:2:"cs";s:3:"num ";s:3:"383";s:5:"title";s:18:"web Development II";}i:1;a:3:{s:3:"sub";s:3:"MTH";s:3:"nu m";s:3:"111";s:5:"title";s:10:"calculus I";}} 5

7 Forms We should be mostly familiar with forms in HTML In general: o Wrap all of the form fields/inputs in <form> tags o Form tags have an action and a method o Add fields, mostly <input>s with different types o <input> have different names o We may need hidden fields o Include a submit button 6

8 <form> The two key attributes to the <form> tag are: o action: The URL/file that the script should forward to o method: GET: Requests data from the specified source (action) POST: Submits data from the specified source (action) 7

9 <form> Pros GET Page can be cached by a browser POST SOLVES ALL OF THE CONS OF GET Cons Page is captured in history (including HTML) Can t submit a file Easier for user to manipulate URLs have a character limit Hidden variables shown in URL User can t refresh page without error warning 8

10 Form Inputs Form inputs (usually <input> but sometimes <option> or <textarea>) all have a name attribute to assign a unique identifier (just like a variable) We can then reference that name as a key in the $_POST array (just as we did with $_GET) 9

11 Validation & Security In CS 283, you learned how to use Javascript to validate user input (such as, making sure they entered a valid number) However, there are some concerns with this: o Users can potentially, in some instances, disable Javascript to prevent the Javascript that validates input from executing o The users can create their own webpages with forms that submit to the website 10

12 Validation & Security For example, you cannot save your password on the portal login page in your browser s manage files screen The reason why? They don t want someone to potentially access your account if you leave your computer to access grades, financial information, etc. The Solution : Create your own webpage with the same form and input names that lists the same action as the form on the portal login page 11

13 Validation & Security Example: o You build a page called which displays a form and includes Javascript for validating form inputs o The form submits to which processes the results of the form o Somebody visits your page and wants to submit something that the Javascript validates against, so they make their own form at that submits to We do not want this it potentially opens up a security hole 12

14 Validation & Security The solutions: o Validate the data a second time, through the server-side (PHP) rather than the client-side o Check the referer of where the script came from You would validate your input from the form just as you validated the input from Lab 2 where you checked the value of n in the query string (it existed, and was an integer greater than 2) 13

15 Validation & Security The referrer is the URL that directed the user to the second URL It is stored in the environment variable $_SERVER["HTTP_REFERER"] 14

16 Validation & Security Back to our example: o When written, it should contain a check that $_SERVER["HTTP_REFERER"] == o When the other person submits their form at to it should find that the referred does not match the expected list, and not process the input 15

17 Inputs with Multiple Responses When you use a checkbox, you are setting up the user to input multiple options if they choose to Example: <form action="submit.php" method="post"> Favorite Subject:<br> <input type="checkbox" name="favsub" value="cs"> CS <input type="checkbox" name="favsub" value="mth"> MTH <input type="checkbox" name="favsub" value="phy"> PHY <input type="submit" name="submit" value="submit!"> </form> 16

18 Inputs with Multiple Responses If we check all three boxes, we might expect to see all three values However, if we put print_r($_post); in submit.php, the result is: Array ( [favsub] => PHY [submit] => Submit! ) 17

19 Inputs with Multiple Responses The solution? Change the value of the name attribute to favsub[] (an array) Now, suppose we still check all three boxes, the result in submit.php is: Array ( [favsub] => Array ( [0] => CS [1] => MTH [2] => PHY ) [submit] => Submit! ) 18

20 Inputs with Multiple Responses We can also define explicitly which index the form items are in Suppose we changed the name attribute to favsub[1] for CS, favsub[2] for MTH, and favsub[3] for PHY, and we submit the form only checking CS and PHY Now, suppose we still check all three boxes, the result in submit.php is: Array ( [favsub] => Array ( [1] => CS [3] => PHY ) [submit] => Submit! ) 19

21 Inputs with Multiple Responses We can use the same technique with anything we might be collecting multiple values for, such as: o Radio buttons not to collect multiple responses for the same question, but a single response from a list of questions In this case, it is much safer to assign indexes rather than let PHP do it when the order matters 20

22 Uploading Files Last week, we talked about everything related to forms except uploading files As we ve talked about already, you can only upload a file through the POST method 21

23 Uploading Files We will use an <input> with the type file We also need to add an additional attribute to the <form> tag 22

24 Example form: Uploading Files <form action="upload.php" enctype="multipart/formdata" method="post"> <!-- optional hidden field to specify maximum file size of form, must be defined before the file field --> <input type="hidden" name="max_file_size" value="1024"> <input type="file" name="myfile"> <input type="submit" name="submit" value="upload"> </form> 23

25 Uploading Files When we submit our form, we have our variables stored in $_POST as we usually do Because we added the enctype attribute, we also have a variable called $_FILES $_FILES is a multi-dimensional array The keys to $_FILES are the names we gave the fields in our form 24

26 Uploading Files The array for each key contains the following associative keys: o name: The (original) name of the file uploaded o type: The mime type of the file o tmp_name: The full path and filename of the temporary location on the server where the file was uploaded (usually, in /tmp/, with a random name) o error: The error code associated with the upload o size: The size of the file, in bytes 25

27 Uploading Files The error codes are as follows: o 0: No error o 1: File exceeded maximum size set in php.ini o 2: File exceeded maximum size set in hidden MAX_FILE_SIZE form field o 3: File only partially uploaded o 4: No file was uploaded o 6: The temporary folder where the files are to be saved does not exist o 7: File could not be written to the disk o 8: A PHP extension stopped the file upload 26

28 Uploading Files When you use multiple fields with the name and empty array key brackets, such as somevar[], it works differently than it does with other fields You would not access these with $_FILES["someVar"][0]["name"], $_FILES["someVar"][1]["name"], etc. You would use $_FILES["someVar"]["name"][0], $_FILES["someVar"]["name"][1], etc. 27

29 Uploading Files Once the file has been uploaded to the temporary directory on the server, you should move it somewhere else to either process it or store it You can do this with the function: move_uploaded_file($tmp_name, $destination) This function verifies that the file was uploaded through a POST form by PHP 28

30 Uploaded Files Example to the above, in upload.php: <?php if($_file["myfile"]["error"] == 0) { move_uploaded_file($_file["myfile"]["tmp_n ame"], "/var/www/html/cs383/uploads/". $_FILES["myFile"]["name"]); } else { print "There was an error uploading the file."; }?> 29

31 Uploaded Files REMEMBER: With our configuration with AssignUserId, files inside your webdocs can be accessed through your website; thus, you will want to move uploaded files into a directory outside of your webdocs when you process them 30

Lecture 3: Web Servers / PHP and Apache. CS 383 Web Development II Monday, January 29, 2018

Lecture 3: Web Servers / PHP and Apache. CS 383 Web Development II Monday, January 29, 2018 Lecture 3: Web Servers / PHP and Apache CS 383 Web Development II Monday, January 29, 2018 Server Configuration One of the most common configurations of servers meant for web development is called a LAMP

More information

Lecture 5. Monday, February 1, 2016

Lecture 5. Monday, February 1, 2016 Lecture 5 Monday, February 1, 2016 === and!== In an example last week, we talked about how PHP does not check type when doing comparisons (so 1.0 == "1.0" is true) PHP calls this type juggling it juggles

More information

Lecture 4. Wednesday, January 27, 2016

Lecture 4. Wednesday, January 27, 2016 Lecture 4 Wednesday, January 27, 2016 PHP through Apache Last week, we talked about building command line scripts This week, we will transition to building scripts that will run through the web server,

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

Lecture 10: Working with Files. CS 383 Web Development II Monday, March 12, 2018

Lecture 10: Working with Files. CS 383 Web Development II Monday, March 12, 2018 Lecture 10: Working with Files CS 383 Web Development II Monday, March 12, 2018 Working with Files Last week, we began to do some work with files through uploads, and we talked a little bit about headers

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

:

: CS200 Assignment 5 HTML and CSS Due Monday February 11th 2019, 11:59 pm Readings and Resources On the web: http://validator.w3.org/ : a site that will check a web page for faulty HTML tags http://jigsaw.w3.org/css-validator/

More information

cwhois Manual Copyright Vibralogix. All rights reserved.

cwhois Manual Copyright Vibralogix. All rights reserved. cwhoistm V2.12 cwhois Manual Copyright 2003-2015 Vibralogix. All rights reserved. This document is provided by Vibralogix for informational purposes only to licensed users of the cwhois product and is

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

Webservices, Proxies, Rest, File Uploads, Security. CS174. Chris Pollett. Nov. 3, 2008.

Webservices, Proxies, Rest, File Uploads, Security. CS174. Chris Pollett. Nov. 3, 2008. Webservices, Proxies, Rest, File Uploads, Security. CS174. Chris Pollett. Nov. 3, 2008. Outline. Web Services. REST. JSON Example. More PHP. Web Services. One important use of AJAX and PHP is to allow

More information

Dreamweaver: Web Forms

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

More information

File uploading in PHP

File uploading in PHP Lecture 26 File uploading in PHP Mr. Mubashir Ali Lecturer (Dept. of Computer Science) dr.mubashirali1@gmail.com 1 Summary of the previous lecture Creating database in MySQL Connecting PHP with MySQL Inserting

More information

Web Site Design and Development Lecture 23. CS 0134 Fall 2018 Tues and Thurs 1:00 2:15PM

Web Site Design and Development Lecture 23. CS 0134 Fall 2018 Tues and Thurs 1:00 2:15PM Web Site Design and Development Lecture 23 CS 0134 Fall 2018 Tues and Thurs 1:00 2:15PM List box The element shows a list of options in a scroll-able box when size is

More information

CAL 9-2: Café Soylent Green Chapter 12

CAL 9-2: Café Soylent Green Chapter 12 CAL 9-2: Café Soylent Green Chapter 12 This version is for those students who are using Dreamweaver CC. You will be completing the Forms Tutorial from your textbook, Chapter 12 however, you will be skipping

More information

Café Soylent Green Chapter 12

Café Soylent Green Chapter 12 Café Soylent Green Chapter 12 This version is for those students who are using Dreamweaver CS6. You will be completing the Forms Tutorial from your textbook, Chapter 12 however, you will be skipping quite

More information

Zend Zend Certified PHP Developer. Download Full Version :

Zend Zend Certified PHP Developer. Download Full Version : Zend 200-550 Zend Certified PHP Developer Download Full Version : http://killexams.com/pass4sure/exam-detail/200-550 QUESTION: 209 What is the return value of the following code: substr_compare("foobar",

More information

File uploading in PHP

File uploading in PHP Lecture 24 File uploading in PHP Mr. Mubashir Ali Lecturer (Dept. of Computer Science) dr.mubashirali1@gmail.com 1 Summary of the previous lecture Creating database in MySQL using WAMP Connecting PHP with

More information

Master Syndication Gateway V2. User's Manual. Copyright Bontrager Connection LLC

Master Syndication Gateway V2. User's Manual. Copyright Bontrager Connection LLC Master Syndication Gateway V2 User's Manual Copyright 2005-2006 Bontrager Connection LLC 1 Introduction This document is formatted for A4 printer paper. A version formatted for letter size printer paper

More information

Submitting forms (client-side)

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

More information

CSE 154 LECTURE 19: FORMS AND UPLOADING FILES

CSE 154 LECTURE 19: FORMS AND UPLOADING FILES CSE 154 LECTURE 19: FORMS AND UPLOADING FILES Exercise: Baby name web service JSON Modify our babynames.php service to produce its output as JSON. For the data: Morgan m 375 410 392 478 579 507 636 499

More information

CS 418 Web Programming Spring 2013 IMAGES SCOTT G. AINSWORTH.

CS 418 Web Programming Spring 2013 IMAGES SCOTT G. AINSWORTH. CS 418 Web Programming Spring 2013 IMAGES SCOTT G. AINSWORTH http://www.cs.odu.edu/~sainswor/cs418-s13/ OUTLINE Assigned Reading Chapter 7 "Manipulating and Creating Images with PHP" Uploading Files Manipulating

More information

Jquery Ajax Json Php Mysql Data Entry Example

Jquery Ajax Json Php Mysql Data Entry Example Jquery Ajax Json Php Mysql Data Entry Example Then add required assets in head which are jquery library, datatable js library and css By ajax api we can fetch json the data from employee-grid-data.php.

More information

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

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

More information

WEBD 236 Web Information Systems Programming

WEBD 236 Web Information Systems Programming WEBD 236 Web Information Systems Programming Week 12 Copyright 2012 Todd Whittaker (todd.whittaker@franklin.edu) Agenda This week s expected outcomes This week s topics This week s homework Upcoming deadlines

More information

Book IX. Developing Applications Rapidly

Book IX. Developing Applications Rapidly Book IX Developing Applications Rapidly Contents at a Glance Chapter 1: Building Master and Detail Pages Chapter 2: Creating Search and Results Pages Chapter 3: Building Record Insert Pages Chapter 4:

More information

External HTML E-form Guide

External HTML E-form Guide External HTML E-form Guide A guide for creation and setup of external e- froms for FileBound. Document Version: 6.5.2 Published Date: 2/27/2014 - 2 - Copyright Copyright 2013 FileBound All Rights Reserved.

More information

NETB 329 Lecture 13 Python CGI Programming

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

More information

Lecture 9 Server Browser Interactions

Lecture 9 Server Browser Interactions Lecture 9 Server Browser Interactions SE-805 Web 2.0 Programming (supported by Google) http://my.ss.sysu.edu.cn/courses/web2.0/ School of Software, Sun Yat-sen University Outline More HTML Forms Submitting

More information

1 Form Basics CSC309

1 Form Basics CSC309 1 Form Basics Web Data 2! Most interesting web pages revolve around data! examples: Google, IMDB, Digg, Facebook, YouTube! can take many formats: text, HTML, XML, multimedia! Many of them allow us to access

More information

Server-side Web Development (I3302) Semester: 1 Academic Year: 2017/2018 Credits: 5 (50 hours) Dr Antoun Yaacoub

Server-side Web Development (I3302) Semester: 1 Academic Year: 2017/2018 Credits: 5 (50 hours) Dr Antoun Yaacoub Lebanese University Faculty of Science Computer Science BS Degree Server-side Web Development (I3302) Semester: 1 Academic Year: 2017/2018 Credits: 5 (50 hours) Dr Antoun Yaacoub 2 PHP forms This lecture

More information

HTML forms and the dynamic web

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

More information

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

BVA LLP Web Portal User Guide

BVA LLP Web Portal User Guide BVA LLP Web Portal User Guide Opening the Web Portal Website The Web Portal is accessed from the link found on the BVA website homepage: http://www.bvateam.com Web Portal Users Each portal user requires

More information

Security issues. Unit 27 Web Server Scripting Extended Diploma in ICT 2016 Lecture: Phil Smith

Security issues. Unit 27 Web Server Scripting Extended Diploma in ICT 2016 Lecture: Phil Smith Security issues Unit 27 Web Server Scripting Extended Diploma in ICT 2016 Lecture: Phil Smith Criteria D3 D3 Recommend ways to improve web security when using web server scripting Clean browser input Don

More information

CSE 154 LECTURE 9: SUBMITTING DATA (POST)

CSE 154 LECTURE 9: SUBMITTING DATA (POST) CSE 154 LECTURE 9: SUBMITTING DATA (POST) Drop-down list: , menus of choices that collapse and expand (inline) jerry george

More information

CS 200. Lecture 10. FileMaker Scripting. Miscellaneous Notes. Abbreviations aka Also Known As DBMS DataBase Management System. CS 200 Spring 2016

CS 200. Lecture 10. FileMaker Scripting. Miscellaneous Notes. Abbreviations aka Also Known As DBMS DataBase Management System. CS 200 Spring 2016 CS 200 Lecture 10 1 Miscellaneous Notes Abbreviations aka Also Known As DBMS DataBase Management System 2 Please read and highlight BEFORE lab Assignment 10 Lecture Notes This week Scripting in FileMaker

More information

Authoring World Wide Web Pages with Dreamweaver

Authoring World Wide Web Pages with Dreamweaver Authoring World Wide Web Pages with Dreamweaver Overview: Now that you have read a little bit about HTML in the textbook, we turn our attention to creating basic web pages using HTML and a WYSIWYG Web

More information

Table of contents. DMXzoneUniformManual DMXzone

Table of contents. DMXzoneUniformManual DMXzone Table of contents Table of contents... 1 About Uniform... 2 The Basics: Basic Usage of Uniform... 11 Advanced: Updating Uniform Elements on Demand... 19 Reference: Uniform Designs... 26 Video: Basic Usage

More information

Advanced Authoring Templates for WebSphere Portal content publishing

Advanced Authoring Templates for WebSphere Portal content publishing By David Wendt (wendt@us.ibm.com) Software Engineer, IBM Corp. October 2003 Advanced Authoring Templates for WebSphere Portal content publishing Abstract This paper describes some advanced techniques for

More information

Figure 1 Forms category in the Insert panel. You set up a form by inserting it and configuring options through the Properties panel.

Figure 1 Forms category in the Insert panel. You set up a form by inserting it and configuring options through the Properties panel. Adobe Dreamweaver CS6 Project 3 guide How to create forms You can use forms to interact with or gather information from site visitors. With forms, visitors can provide feedback, sign a guest book, take

More information

This Tutorial is for Word 2007 but 2003 instructions are included in [brackets] after of each step.

This Tutorial is for Word 2007 but 2003 instructions are included in [brackets] after of each step. This Tutorial is for Word 2007 but 2003 instructions are included in [brackets] after of each step. Table of Contents Just so you know: Things You Can t Do with Word... 1 Get Organized... 1 Create the

More information

CGI Programming. What is "CGI"?

CGI Programming. What is CGI? CGI Programming What is "CGI"? Common Gateway Interface A means of running an executable program via the Web. CGI is not a Perl-specific concept. Almost any language can produce CGI programs even C++ (gasp!!)

More information

DNN Site Search. User Guide

DNN Site Search. User Guide DNN Site Search User Guide Table of contents Introduction... 4 Features... 4 System Requirements... 4 Installation... 5 How to use the module... 5 Licensing... Error! Bookmark not defined. Reassigning

More information

(Frequently Asked Questions)

(Frequently Asked Questions) (Frequently Asked Questions) Aptech Ltd. Version 1.0 Page 1 of 9 Table of Contents S# Question 1. How do you create sub domains using PHP? 2. What is the difference between echo and print statements in

More information

ADOBE DREAMWEAVER CS4 BASICS

ADOBE DREAMWEAVER CS4 BASICS ADOBE DREAMWEAVER CS4 BASICS Dreamweaver CS4 2 This tutorial focuses on the basic steps involved in creating an attractive, functional website. In using this tutorial you will learn to design a site layout,

More information

Quick Start Manual for Mechanical TA

Quick Start Manual for Mechanical TA Quick Start Manual for Mechanical TA Chris Thornton cwthornt@cs.ubc.ca August 18, 2013 Contents 1 Quick Install 1 2 Creating Courses 2 3 User Management 2 4 Assignment Management 3 4.1 Peer Review Assignment

More information

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "

<!DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN CS 200 Assignment 7 HTML Due Tuesday June 30 at 9:00 am Please read the submission instructions on page 7 carefully, especially if you will be working on the assignment past the due date. To access your

More information

Viewing Turnitin Originality Reports

Viewing Turnitin Originality Reports Viewing Turnitin Originality Reports You can view the reports through the Turnitin Assignments' link under the Course Tools' area of the Control Panel', or through the Grade Centre' (provided anonymous

More information

Web Focused Programming With PHP

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

More information

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

Working with Pages... 9 Edit a Page... 9 Add a Page... 9 Delete a Page Approve a Page... 10

Working with Pages... 9 Edit a Page... 9 Add a Page... 9 Delete a Page Approve a Page... 10 Land Information Access Association Community Center Software Community Center Editor Manual May 10, 2007 - DRAFT This document describes a series of procedures that you will typically use as an Editor

More information

Lecture 18: Server Configuration & Miscellanea. Monday, April 23, 2018

Lecture 18: Server Configuration & Miscellanea. Monday, April 23, 2018 Lecture 18: Server Configuration & Miscellanea Monday, April 23, 2018 Apache Earlier in the course, we talked about the configuration of everything except Apache There are some components of configuring

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

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

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

More information

Database Systems Fundamentals

Database Systems Fundamentals Database Systems Fundamentals Using PHP Language Arman Malekzade Amirkabir University of Technology (Tehran Polytechnic) Notice: The class is held under the supervision of Dr.Shiri github.com/arman-malekzade

More information

Spring 2014 Interim. HTML forms

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

More information

BF Survey Pro User Guide

BF Survey Pro User Guide BF Survey Pro User Guide January 2011 v1.0 1 of 41 www.tamlyncreative.com.au/software/ Table of Contents Introduction... 5 Support... 5 Documentation... 5 Installation New Install... 5 Installation Upgrade...

More information

Connecture Platform Manager

Connecture Platform Manager Connecture Platform Manager 1 P a g e Table of Contents Connecture Platform Manager... 1 Introduction to the Connecture Platform Manager... 3 Getting Started... 3 Login... 3 Dashboard... 3 Connecture Application

More information

Getting help with Edline 2. Edline basics 3. Displaying a class picture and description 6. Using the News box 7. Using the Calendar box 9

Getting help with Edline 2. Edline basics 3. Displaying a class picture and description 6. Using the News box 7. Using the Calendar box 9 Teacher Guide 1 Henry County Middle School EDLINE March 3, 2003 This guide gives you quick instructions for the most common class-related activities in Edline. Please refer to the online Help for additional

More information

COMS 359: Interactive Media

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

More information

Files.Kennesaw.Edu. Kennesaw State University Information Technology Services. Introduces. Presented by the ITS Technology Outreach Team

Files.Kennesaw.Edu. Kennesaw State University Information Technology Services. Introduces. Presented by the ITS Technology Outreach Team Kennesaw State University Information Technology Services Introduces Files.Kennesaw.Edu Presented by the ITS Technology Outreach Team Last Updated 08/12/13 Powered by Xythos Copyright 2006, Xythos Software

More information

CS Homework 6. Deadline. Purpose. How to submit. Important notes. Problem 1. Spring CS Homework 6 p. 1

CS Homework 6. Deadline. Purpose. How to submit. Important notes. Problem 1. Spring CS Homework 6 p. 1 Spring 2018 - CS 328 - Homework 6 p. 1 Deadline Due by 11:59 pm on Sunday, March 11, 2018. Purpose CS 328 - Homework 6 To encourage you to look over the course PHP style standards, and to give you more

More information

Developing Online Databases and Serving Biological Research Data

Developing Online Databases and Serving Biological Research Data Developing Online Databases and Serving Biological Research Data 1 Last Time HTML Hypertext Markup Language Used to build web pages Static, and can't change the way it presents itself based off of user

More information

Exam Actual. Higher Quality. Better Service! QUESTION & ANSWER

Exam Actual. Higher Quality. Better Service! QUESTION & ANSWER Higher Quality Better Service! Exam Actual QUESTION & ANSWER Accurate study guides, High passing rate! Exam Actual provides update free of charge in one year! http://www.examactual.com Exam : 200-530 Title

More information

CSCI 1100L: Topics in Computing Lab Lab 11: Programming with Scratch

CSCI 1100L: Topics in Computing Lab Lab 11: Programming with Scratch CSCI 1100L: Topics in Computing Lab Lab 11: Programming with Scratch Purpose: We will take a look at programming this week using a language called Scratch. Scratch is a programming language that was developed

More information

How To Upload Your Newsletter

How To Upload Your Newsletter How To Upload Your Newsletter Using The WS_FTP Client Copyright 2005, DPW Enterprises All Rights Reserved Welcome, Hi, my name is Donna Warren. I m a certified Webmaster and have been teaching web design

More information

FAU. How do I. Post course content? Folders

FAU. How do I. Post course content? Folders How do I Post course content? Content is made up of folders, files, links, and assessments (this will be covered on page ## or see separate documentation). It is basically anything you want to share with

More information

PASS4TEST. IT Certification Guaranteed, The Easy Way! We offer free update service for one year

PASS4TEST. IT Certification Guaranteed, The Easy Way!  We offer free update service for one year PASS4TEST IT Certification Guaranteed, The Easy Way! \ http://www.pass4test.com We offer free update service for one year Exam : 200-530 Title : Zend PHP 5.3 Certification Vendors : Zend-Technologies Version

More information

Databases HTML and PHP I. (GF Royle, N Spadaccini ) HTML/PHP I 1 / 28

Databases HTML and PHP I. (GF Royle, N Spadaccini ) HTML/PHP I 1 / 28 Databases HTML and PHP I (GF Royle, N Spadaccini 2006-2010) HTML/PHP I 1 / 28 This lecture The main purpose of this lecture is to cover HTML forms and how a PHP script can obtain values from the user.

More information

Civil Air Patrol. IMU3 Virtual Mode User s s Guide 27 Oct 2010

Civil Air Patrol. IMU3 Virtual Mode User s s Guide 27 Oct 2010 Civil Air Patrol IMU3 Virtual Mode User s s Guide 27 Oct 2010 IMU3 User s Guide Download & Install IMU3 (and update) Open IMU3 for First-Time Use IMU s Login Method Changes Open An Incident Check-In /

More information

JavaScript Functions, Objects and Array

JavaScript Functions, Objects and Array JavaScript Functions, Objects and Array Defining a Function A definition starts with the word function. A name follows that must start with a letter or underscore, followed by any number of letters, digits,

More information

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

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

More information

Assure Self-Service Portal

Assure Self-Service Portal Assure Self-Service Portal Assure Self-Service Portal is a web-based portal, where Customers are able to: Record Cases to Assure Support 24/7 View existing and past Cases Find solutions to known issues

More information

Last modification of document: by Tomasz Dobrzyński

Last modification of document: by Tomasz Dobrzyński Thank you for purchasing Gonzales. If you have any questions that are beyond the scope of this help file, please feel free to contact me using following form. If you need my help with installation or plugin

More information

Working with Databases

Working with Databases Working with Databases TM Control Panel User Guide Working with Databases 1 CP offers you to use databases for storing, querying and retrieving information. CP for Windows currently supports MS SQL, PostgreSQL

More information

CS105 Perl: Perl CGI. Nathan Clement 24 Feb 2014

CS105 Perl: Perl CGI. Nathan Clement 24 Feb 2014 CS105 Perl: Perl CGI Nathan Clement 24 Feb 2014 Agenda We will cover some CGI basics, including Perl-specific CGI What is CGI? Server Architecture GET vs POST Preserving State in CGI URL Rewriting, Hidden

More information

Exercise 1 Using Boolean variables, incorporating JavaScript code into your HTML webpage and using the document object

Exercise 1 Using Boolean variables, incorporating JavaScript code into your HTML webpage and using the document object CS1046 Lab 5 Timing: This lab should take you approximately 2 hours. Objectives: By the end of this lab you should be able to: Recognize a Boolean variable and identify the two values it can take Calculate

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

Color Manager install set

Color Manager install set Global Version 1.1 Obtaining Color Manager install set 1. On computer that synchronizes CM via Internet 2. On any computer connected to Internet 3. On computer not connected to Internet Modified: Tuesday,

More information

Adobe Dreamweaver CS5 Tutorial

Adobe Dreamweaver CS5 Tutorial Adobe Dreamweaver CS5 Tutorial GETTING STARTED This tutorial focuses on the basic steps involved in creating an attractive, functional website. In using this tutorial you will learn to design a site layout,

More information

CSCI 1100L: Topics in Computing Lab Lab 1: Introduction to the Lab! Part I

CSCI 1100L: Topics in Computing Lab Lab 1: Introduction to the Lab! Part I CSCI 1100L: Topics in Computing Lab Lab 1: Introduction to the Lab! Part I Welcome to your CSCI-1100 Lab! In the fine tradition of the CSCI-1100 course, we ll start off the lab with the classic bad joke

More information

Cmpt 101 Lab 1 - Outline

Cmpt 101 Lab 1 - Outline Cmpt 101 Lab 1 - Outline Instructions: Work through this outline completely once directed to by your Lab Instructor and fill in the Lab 1 Worksheet as indicated. Contents PART 1: GETTING STARTED... 2 PART

More information

Dreamweaver Forms Outline

Dreamweaver Forms Outline Dreamweaver Forms Outline Discuss the different types of scripts used for forms o Form Mail Script The different tools o Insert Form o Insert Text Field o Insert Button o Discuss differences between checkboxes

More information

Lecture 8: Images. CS 383 Web Development II Monday, February 19, 2018

Lecture 8: Images. CS 383 Web Development II Monday, February 19, 2018 Lecture 8: Images CS 383 Web Development II Monday, February 19, 2018 Images We can dynamically create images in PHP through the GD library o GD originally stood for gif draw o At one point, GIF support

More information

CS Homework 12

CS Homework 12 Spring 2018 - CS 328 - Homework 12 p. 1 Deadline CS 328 - Homework 12 Problem 3 (presenting something operational from Problem 2) is due during lab on Friday, May 4; Problems 1 and 2 due by 11:59 pm on

More information

INTRODUCTION TO WEB DEVELOPMENT AND HTML. Lecture 13: Intro to JavaScript - Spring 2011

INTRODUCTION TO WEB DEVELOPMENT AND HTML. Lecture 13: Intro to JavaScript - Spring 2011 INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 13: Intro to JavaScript - Spring 2011 Outline Intro to JavaScript What is JavaScript? JavaScript!= Java Intro to JavaScript JavaScript is a lightweight

More information

JavaScript!= Java. Intro to JavaScript. What is JavaScript? Intro to JavaScript 4/17/2013 INTRODUCTION TO WEB DEVELOPMENT AND HTML

JavaScript!= Java. Intro to JavaScript. What is JavaScript? Intro to JavaScript 4/17/2013 INTRODUCTION TO WEB DEVELOPMENT AND HTML INTRODUCTION TO WEB DEVELOPMENT AND HTML Intro to JavaScript Lecture 13: Intro to JavaScript - Spring 2013 What is JavaScript? JavaScript!= Java Intro to JavaScript JavaScript is a lightweight programming

More information

CS50 Quiz Review. November 13, 2017

CS50 Quiz Review. November 13, 2017 CS50 Quiz Review November 13, 2017 Info http://docs.cs50.net/2017/fall/quiz/about.html 48-hour window in which to take the quiz. You should require much less than that; expect an appropriately-scaled down

More information

EZ Admin Helper Addon

EZ Admin Helper Addon EZ Admin Helper Addon Purpose Many common administrative functions are needed to successfully run your business. This addon provides you a way to either schedule tasks to be done at an interval you choose

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

If you re serious about Cookie Stuffing, take a look at Cookie Stuffing Script.

If you re serious about Cookie Stuffing, take a look at Cookie Stuffing Script. Cookie Stuffing What is Cookie Stuffing? Cookie Stuffing is a very mild form of black hat marketing, because in all honesty, this one doesn t break any laws. Certainly, it goes against the terms of service

More information

Adding content to your Blackboard 9.1 class

Adding content to your Blackboard 9.1 class Adding content to your Blackboard 9.1 class There are quite a few options listed when you click the Build Content button in your class, but you ll probably only use a couple of them most of the time. Note

More information

Ministry Platform: The Portal

Ministry Platform: The Portal Ministry Platform: The Portal This user guide will allow you to see how to view a group that you are a leader of and what data you can manipulate. Before starting, WHAT YOU DO IS DIRECTLY CONNECTED TO

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

Basic Uses of JavaScript: Modifying Existing Scripts

Basic Uses of JavaScript: Modifying Existing Scripts Overview: Basic Uses of JavaScript: Modifying Existing Scripts A popular high-level programming languages used for making Web pages interactive is JavaScript. Before we learn to program with JavaScript

More information

Creating and Building Websites

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

More information

Introduction. Installation. Version 2 Installation & User Guide. In the following steps you will:

Introduction. Installation. Version 2 Installation & User Guide. In the following steps you will: Introduction Hello and welcome to RedCart TM online proofing and order management! We appreciate your decision to implement RedCart for your online proofing and order management business needs. This guide

More information

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

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

More information

ITEC447 Web Projects CHAPTER 9 FORMS 1

ITEC447 Web Projects CHAPTER 9 FORMS 1 ITEC447 Web Projects CHAPTER 9 FORMS 1 Getting Interactive with Forms The last few years have seen the emergence of the interactive web or Web 2.0, as people like to call it. The interactive web is an

More information

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

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

More information