Lab 4: Basic PHP Tutorial, Part 2

Size: px
Start display at page:

Download "Lab 4: Basic PHP Tutorial, Part 2"

Transcription

1 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 code examples and experiment with them in order to understand the underlying concepts. PHP examples Recall from last week that all of the code in the grey boxes can be placed in a file with the extension.php and uploaded to a web server supporting PHP without modification. Your lab activity for today involves doing this to see what the code produces, then experimenting with the code to understand it thoroughly. All code examples can be found in the OUT folder with the file name indicated. Additional examples of the same concepts can be found at the CSC-111 web site (cs.furman.edu/~ktreu/csc111/examples.html) and in the lecture notes. Create a folder called lab4 inside of your csc111 folder from last week. Copy all of the files for this lab (from the OUT folder) to this folder. Then use WinSCP to connect to your CS department web server account and upload the entire lab4 folder into your www/csc111 directory. You will then be able to run all of the files using the URL Remember that none of this code will work unless it is first loaded to the CS department server. That is inherent in the concept of server-side scripting. For each of the following examples, follow these steps: o Upload the code to the web server. (You just did this.) o Read the code and the description very carefully. Take your time. Ask questions. Make sure you understand what s going on with the example. o Use your browser to try out the code and see what it does. o Use Dreamweaver or another text editor to make the suggested changes to the example to demonstrate that you know what s happening. o Remember that after making the changes you have to upload the file using WinSCP again. 0. Pre-lab exercise. Your first task is simply to make an index page for your lab4 folder. Use Dreamweaver to make a new file called index.php and save it in your lab4 folder. Title the page CSC-111 PHP Lab, Part 2 and create a bulleted list of links to the files that you just uploaded. Upload the index page to your lab4 folder on the server with WinSCP. Then use your browser to test the page and make sure all of the links work. When they do, proceed with the following tests and experiments.

2 CSC-111: Introduction to Information Technology page 2 1. Using conditional statements and the query string to determine page content (file: 1ifelse.php) $score = $_GET['grade']; if ($score < 60) echo "You fail. Study harder next time!"; else if ($score <= 100) echo "You pass. Good job!"; else echo "invalid input given"; This example reviews if-else control statements from last week, and also takes a first hands-on look at the GET method. Recall that $_GET is a variable in PHP that looks in the querystring for input. That input can either be placed there using a form, or it can simply be coded into the URL. The code above checks the URL querystring and, depending on the value of $_GET[ grade ], prints an appropriate message. After you upload this file, try these different URLs with querystrings added: Everything after the question mark in each URL is called a querystring. It s actually giving the page a value that it needs. You access querystring values using the $_GET array. Do you see how it works? EXPERIMENTS: First, try other values for grade in the querystring. Including no value at all. Then try changing the word grade to something else. What happens? Modify the example so it assigns a letter grade rather than just pass/fail. It should assign an A for , B for 80-89, etc. Be sure to test thoroughly when you re done. NOTE: The link to this example on your index page should include a querystring with a value. In other words, when you click on the link for this problem, it should give an answer other than invalid input given.

3 CSC-111: Introduction to Information Technology page 3 2. User-defined functions (file: 2adder.php) <html> <head></head> <body> function adder($num1, $num2){ return $num1 + $num2; $number1 = $_POST[ number1 ]; $number2 = $_POST[ number2 ]; if($number1 && $number2){ echo "<h3>the sum of ". $number1. " and ". $number2. " is: ". adder($number1, $number2). ".</h3>"; <h2>please input 2 numbers to add together.<br> <form action=2adder.php method=post> <input type=text length=5 name=number1> + <input type=text length=5 name=number2> <input type=submit value="equals"><br> </form> </body> </html> Last week we saw how to use a function that PHP defines for us (the date function). Here we see how to create a function of our own to do our work for us. This is done with the keyword function, followed by the name of the function and a pair of parentheses. The parentheses contain the parameters, or data that is expected by the function. Note that PHP functions require the use of the return command. This is how you send back a value to the place the function was called. The function in this example looks like this: function adder($num1, $num2){ return $num1 + $num2; Here again we see the use of an HTML form, and a page that processes itself. (Remember the hello example from last week.) EXPERIMENTS: Make the program subtract instead. Do this by writing an additional function called subtracter, rather than erasing the existing function. Once you have the new function, you simply have to change the function call, calling subtracter instead of adder. Finally, add a multiplier function and call it instead. Modify the program to use the get method and the $_GET array instead. (Then note how the querystring is used. Further note that you no longer need to use the form if you don t want to.) Try having the addition done by a second PHP page. You might even find this simpler than the given example.

4 CSC-111: Introduction to Information Technology page 4 3. Session variables (files: 3sessiontest.php and 3sessiontest2.php) A more advanced feature of PHP is the session variable. A session variable is a special kind of variable that maintains its value from page to page (that is, as a browser clicks from page to page in the same browsing session). session_start(); $_SESSION['count']++; echo "<h4>the value of session variable <i>count</i> is ". $_SESSION['count']. ".</h4>"; <HTML> <HEAD><TITLE>Session Variable Test</TITLE></HEAD> <BODY> Click <b>refresh</b> a few times to see what happens. Then click here to open the file <i><a href="7sessiontest2.php">7sessiontest2.php</a></i>. In this example we see the creation of session variable count, expressed as $_SESSION[ count ]. The build-in PHP function session_start() tells the PHP processor that session variables are being used on this page. The ++ code simply adds one to the value of the session variable. Thus the result you get when you reload the page. session_start(); $_SESSION['count']++; echo "<h4>the value of session variable <i>count</i> is ". $_SESSION['count']. " on this page.</h4>"; <HTML> <HEAD><TITLE>Session Variable Test</TITLE></HEAD> <BODY> Note that the value of <i>count</i> has persisted across both pages. </BODY> </HTML> The next example includes a second use of the same session variable. Its value is the same as it was on the page that linked to this one. Session variables are extremely useful in certain situations. An example might be a site on which users have greater access to data if they have a membership of some kind. When they log in, a session variable can be used to indicate that they are a member, thus allowing them to browse the site without having to log in again every time they change pages.

5 CSC-111: Introduction to Information Technology page 5 By the time you ve reached this point, you should thoroughly understand the examples we ve covered. If not, go back and experiment some more with the code. Try different things to see what works and what doesn t. Ask questions. When you re satisfied, make sure your index page is uploaded and working, and go ahead and get started on the postlab activity.

5.6 Rational Equations

5.6 Rational Equations 5.6 Rational Equations Now that we have a good handle on all of the various operations on rational expressions, we want to turn our attention to solving equations that contain rational expressions. The

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

Café Soylent Green Chapter 12

Café Soylent Green Chapter 12 Café Soylent Green Chapter 12 You will be completing the Forms Tutorial from your textbook, Chapter 12, pgs. 612-636. You will need to be at a computer that is connected to the Internet. Dreamweaver CS6

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

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

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

Lecture 6: More Arrays & HTML Forms. CS 383 Web Development II Monday, February 12, 2018 Lecture 6: More Arrays & HTML Forms CS 383 Web Development II Monday, February 12, 2018 Lambdas You may have encountered a lambda (sometimes called anonymous functions) in other programming languages The

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

Decisions, Decisions. Testing, testing C H A P T E R 7

Decisions, Decisions. Testing, testing C H A P T E R 7 C H A P T E R 7 In the first few chapters, we saw some of the basic building blocks of a program. We can now make a program with input, processing, and output. We can even make our input and output a little

More information

How to Create a NetBeans PHP Project

How to Create a NetBeans PHP Project How to Create a NetBeans PHP Project 1. SET UP PERMISSIONS FOR YOUR PHP WEB SITE... 2 2. CREATE NEW PROJECT ("PHP APPLICATION FROM REMOTE SERVER")... 2 3. SPECIFY PROJECT NAME AND LOCATION... 2 4. SPECIFY

More information

Creating and Updating Websites In-Service Training Supplement

Creating and Updating Websites In-Service Training Supplement Creating and Updating Websites 2013 In-Service Training Supplement Editing Official Websites (ie Departments) Official Websites Who to talk to: Confusing? Here s what you need to know: Webpage content

More information

CMSC 201 Spring 2017 Lab 12 Recursion

CMSC 201 Spring 2017 Lab 12 Recursion CMSC 201 Spring 2017 Lab 12 Recursion Assignment: Lab 12 Recursion Due Date: During discussion, May 1st through May 4th Value: 10 points (8 points during lab, 2 points for Pre Lab quiz) This week s lab

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

BEGINNER PHP Table of Contents

BEGINNER PHP Table of Contents Table of Contents 4 5 6 7 8 9 0 Introduction Getting Setup Your first PHP webpage Working with text Talking to the user Comparison & If statements If & Else Cleaning up the game Remembering values Finishing

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

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

Enhancing Web Pages with JavaScript

Enhancing Web Pages with JavaScript Enhancing Web Pages with JavaScript Introduction In this Tour we will cover: o The basic concepts of programming o How those concepts are translated into JavaScript o How JavaScript can be used to enhance

More information

HTML 5 Form Processing

HTML 5 Form Processing HTML 5 Form Processing In this session we will explore the way that data is passed from an HTML 5 form to a form processor and back again. We are going to start by looking at the functionality of part

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

CMSC 201 Fall 2016 Lab 13 More Recursion

CMSC 201 Fall 2016 Lab 13 More Recursion CMSC 201 Fall 2016 Lab 13 More Recursion Assignment: Lab 13 More Recursion Due Date: During discussion, December 5th through 8th Value: 10 points Part 1A: What is Recursion? So far this semester, we ve

More information

First Simple Interactive JSP example

First Simple Interactive JSP example Let s look at our first simple interactive JSP example named hellojsp.jsp. In his Hello User example, the HTML page takes a user name from a HTML form and sends a request to a JSP page, and JSP page generates

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

CS 051 Homework Laboratory #2

CS 051 Homework Laboratory #2 CS 051 Homework Laboratory #2 Dirty Laundry Objective: To gain experience using conditionals. The Scenario. One thing many students have to figure out for the first time when they come to college is how

More information

Let's Look Back. We talked about how to create a form in HTML. Forms are one way to interact with users

Let's Look Back. We talked about how to create a form in HTML. Forms are one way to interact with users Introduction to PHP Let's Look Back We talked about how to create a form in HTML Forms are one way to interact with users Users can enter information into forms which can be used by you (programmer) We

More information

Some things to watch out for when using PHP and Javascript when building websites

Some things to watch out for when using PHP and Javascript when building websites Some things to watch out for when using PHP and Javascript when building websites Les Hatton 10 Sep 2003 1 PHP PHP is a C-like language which evolved from Perl scripts originally produced by Rasmus Lerdorf

More information

E-Business Systems 1 INTE2047 Lab Exercises. Lab 5 Valid HTML, Home Page & Editor Tables

E-Business Systems 1 INTE2047 Lab Exercises. Lab 5 Valid HTML, Home Page & Editor Tables Lab 5 Valid HTML, Home Page & Editor Tables Navigation Topics Covered Server Side Includes (SSI) PHP Scripts menu.php.htaccess assessment.html labtasks.html Software Used: HTML Editor Background Reading:

More information

Lab 5: Dreamweaver CS5, Uploading your Web site

Lab 5: Dreamweaver CS5, Uploading your Web site Lab 5: Dreamweaver CS5, Uploading your Web site Setting up Local and Remote Information: 1. Launch Dreamweaver 2. Choose site->new site 3. By Site Name give your site a name. Make sure the name has no

More information

Café Soylent Green Chapter 1

Café Soylent Green Chapter 1 Café Soylent Green Chapter 1 You will be completing the Dreamweaver Test Drive from your textbook, Chapter 1, pgs. 53-84. You will need to be at a computer that is connected to the Internet. Dreamweaver

More information

Submitting Assignments

Submitting Assignments Submitting Assignments Blackboard s assignments feature allows the instructor to assign coursework for you to submit electronically. First, you need to locate the assignment. Your instructor will place

More information

Table of contents. Pure PHP/ASP Upload AddOn Pack Manual DMXzone

Table of contents. Pure PHP/ASP Upload AddOn Pack Manual DMXzone Table of contents Table of contents... 1 About Pure PHP/ASP Upload Add-on Pack... 2 Features in Detail... 3 The Basics: Using Delete File(s) Before Record Server Behavior... 8 Advanced: Using Delete File

More information

USQ/CSC2406 Web Publishing

USQ/CSC2406 Web Publishing USQ/CSC2406 Web Publishing Lecture 4: HTML Forms, Server & CGI Scripts Tralvex (Rex) Yeap 19 December 2002 Outline Quick Review on Lecture 3 Topic 7: HTML Forms Topic 8: Server & CGI Scripts Class Activity

More information

STA 303 / 1002 Using SAS on CQUEST

STA 303 / 1002 Using SAS on CQUEST STA 303 / 1002 Using SAS on CQUEST A review of the nuts and bolts A.L. Gibbs January 2012 Some Basics of CQUEST If you don t already have a CQUEST account, go to www.cquest.utoronto.ca and request one.

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

Fasthosts Customer Support An Introduction to PHP Scripting

Fasthosts Customer Support An Introduction to PHP Scripting Fasthosts Customer Support An Introduction to PHP Scripting This guide will introduce some simple yet powerful features of PHP, a popular scripting language, and help you take your first steps towards

More information

Introduction to web development and HTML MGMT 230 LAB

Introduction to web development and HTML MGMT 230 LAB Introduction to web development and HTML MGMT 230 LAB After this lab you will be able to... Understand the VIU network and web server environment and how to access it Save files to your web folder for

More information

Café Soylent Green Chapters 4

Café Soylent Green Chapters 4 Café Soylent Green Chapters 4 You will be completing the Links Tutorial from your textbook, Chapter 4, pgs. 223-227 AND the Images Tutorial, Chapter 5, pgs. 278-287. You will need to be at a computer that

More information

Online Grant Application Guide

Online Grant Application Guide Online Grant Application Guide A how-to on applying online for grants offered by the Minnesota Department of Agriculture In accordance with the Americans with Disabilities Act, this information is available

More information

Programming Lab 1 (JS Hwk 3) Due Thursday, April 28

Programming Lab 1 (JS Hwk 3) Due Thursday, April 28 Programming Lab 1 (JS Hwk 3) Due Thursday, April 28 Lab You may work with partners for these problems. Make sure you put BOTH names on the problems. Create a folder named JSLab3, and place all of the web

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

BASIC COMPUTATION. public static void main(string [] args) Fundamentals of Computer Science I

BASIC COMPUTATION. public static void main(string [] args) Fundamentals of Computer Science I BASIC COMPUTATION x public static void main(string [] args) Fundamentals of Computer Science I Outline Using Eclipse Data Types Variables Primitive and Class Data Types Expressions Declaration Assignment

More information

Administration. Objects and Arrays. Objects. Agenda. What is an Object? What is a Class?

Administration. Objects and Arrays. Objects. Agenda. What is an Object? What is a Class? Administration Objects and Arrays CS 99 Summer 2000 Michael Clarkson Lecture 6 Read clarified grading policies Lab 6 due tomorrow Submit.java files in a folder named Lab6 Lab 7 Posted today Upson Lab closed

More information

web.py Tutorial Tom Kelliher, CS 317 This tutorial is the tutorial from the web.py web site, with a few revisions for our local environment.

web.py Tutorial Tom Kelliher, CS 317 This tutorial is the tutorial from the web.py web site, with a few revisions for our local environment. web.py Tutorial Tom Kelliher, CS 317 1 Acknowledgment This tutorial is the tutorial from the web.py web site, with a few revisions for our local environment. 2 Starting So you know Python and want to make

More information

GradeConnect.com. User Manual

GradeConnect.com. User Manual GradeConnect.com User Manual Version 2.0 2003-2006, GradeConnect, Inc. Written by Bernie Salvaggio Edited by Charles Gallagher & Beth Giuliano Contents Teachers...5 Account Basics... 5 Register Your School

More information

CSC 101: Lab #1 HTML and the WWW Lab Date: Tuesday, 1/26/2010 Report Due Date: Friday, 1/29/2010 3:00pm

CSC 101: Lab #1 HTML and the WWW Lab Date: Tuesday, 1/26/2010 Report Due Date: Friday, 1/29/2010 3:00pm CSC 101: Lab #1 HTML and the WWW Lab Date: Tuesday, 1/26/2010 Report Due Date: Friday, 1/29/2010 3:00pm Lab Report: Make sure to follow along in the lab report document and answer questions as you encounter

More information

Adobe Dreamweaver CS3 English 510 Fall 2007

Adobe Dreamweaver CS3 English 510 Fall 2007 Adobe Dreamweaver CS3 English 510 Fall 2007 Important: Before going through this handout, you should create a WWW directory on your ISU e-mail account. Otherwise, you will not be able to upload and view

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

How to Download and Install R The R software can be downloaded from: Click on download R link.

How to Download and Install R The R software can be downloaded from:   Click on download R link. Tutorial 1: Getting Acquainted with R (Windows version) How to Download and Install R The R software can be downloaded from: www.r-project.org. Click on download R link. Choose a CRAN mirror from a location

More information

Eclipse Environment Setup

Eclipse Environment Setup Eclipse Environment Setup Adapted from a document from Jeffrey Miller and the CS201 team by Shiyuan Sheng. Introduction This lab document will go over the steps to install and set up Eclipse, which is

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

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

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

Things to note: Each week Xampp will need to be installed. Xampp is Windows software, similar software is available for Mac, called Mamp.

Things to note: Each week Xampp will need to be installed. Xampp is Windows software, similar software is available for Mac, called Mamp. Tutorial 8 Editor Brackets Goals Introduction to PHP and MySql. - Set up and configuration of Xampp - Learning Data flow Things to note: Each week Xampp will need to be installed. Xampp is Windows software,

More information

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

Web Engineering (Lecture 08) WAMP

Web Engineering (Lecture 08) WAMP Web Engineering (Lecture 08) WAMP By: Mr. Sadiq Shah Lecturer (CS) Class BS(IT)-6 th semester WAMP WAMP is all-in-one Apache/MySQL/PHP package WAMP stands for: i) Windows ii) iii) iv) Apache MySql PHP

More information

Writing Perl Programs using Control Structures Worked Examples

Writing Perl Programs using Control Structures Worked Examples Writing Perl Programs using Control Structures Worked Examples Louise Dennis October 27, 2004 These notes describe my attempts to do some Perl programming exercises using control structures and HTML Forms.

More information

Beginning HTML. The Nuts and Bolts of building Web pages.

Beginning HTML. The Nuts and Bolts of building Web pages. Beginning HTML The Nuts and Bolts of building Web pages. Overview Today we will cover: 1. what is HTML and what is it not? Building a simple webpage Getting that online. What is HTML? The language of the

More information

Intro to Programming. Unit 7. What is Programming? What is Programming? Intro to Programming

Intro to Programming. Unit 7. What is Programming? What is Programming? Intro to Programming Intro to Programming Unit 7 Intro to Programming 1 What is Programming? 1. Programming Languages 2. Markup vs. Programming 1. Introduction 2. Print Statement 3. Strings 4. Types and Values 5. Math Externals

More information

Content - Creating New Topics (6/2016)

Content - Creating New Topics (6/2016) Content - Creating New Topics (6/2016) After you have created and selected your Module, you should see two dropdown menus, New and Add Existing Activities, and the Bulk Edit button. These will allow you

More information

CMSC 201 Spring 2018 Lab 01 Hello World

CMSC 201 Spring 2018 Lab 01 Hello World CMSC 201 Spring 2018 Lab 01 Hello World Assignment: Lab 01 Hello World Due Date: Sunday, February 4th by 8:59:59 PM Value: 10 points At UMBC, the GL system is designed to grant students the privileges

More information

CS 1110, LAB 10: ASSERTIONS AND WHILE-LOOPS 1. Preliminaries

CS 1110, LAB 10: ASSERTIONS AND WHILE-LOOPS  1. Preliminaries CS 0, LAB 0: ASSERTIONS AND WHILE-LOOPS http://www.cs.cornell.edu/courses/cs0/20sp/labs/lab0.pdf. Preliminaries This lab gives you practice with writing loops using invariant-based reasoning. Invariants

More information

CSC 101: Lab #1 Introduction and Setup Due Date: 5:00pm, day after your lab session

CSC 101: Lab #1 Introduction and Setup Due Date: 5:00pm, day after your lab session Name: WFU Email: Lab Section: Tuesday, 9:30 Tuesday, 12:00 Tuesday, 1:30 Tuesday, 3:00 Thursday, 3:00 CSC 101: Lab #1 Introduction and Setup Due Date: 5:00pm, day after your lab session Purpose: The purpose

More information

Create-A-Page Design Documentation

Create-A-Page Design Documentation Create-A-Page Design Documentation Group 9 C r e a t e - A - P a g e This document contains a description of all development tools utilized by Create-A-Page, as well as sequence diagrams, the entity-relationship

More information

Web Design Competition File Upload Tutorial

Web Design Competition File Upload Tutorial Web Design Competition File Upload Tutorial Designed for use by the Michigan Council of Women in Technology Copyright 2016 Patricia Howard All Rights Reserved Welcome. We ll start with a quick overview

More information

Lecture 5. Defining Functions

Lecture 5. Defining Functions Lecture 5 Defining Functions Announcements for this Lecture Last Call Quiz: About the Course Take it by tomorrow Also remember the survey Readings Sections 3.5 3.3 today Also 6.-6.4 See online readings

More information

1) Log on to the computer using your PU net ID and password.

1) Log on to the computer using your PU net ID and password. CS 150 Lab Logging on: 1) Log on to the computer using your PU net ID and password. Connecting to Winter: Winter is the computer science server where all your work will be stored. Remember, after you log

More information

COMP s1 Lecture 1

COMP s1 Lecture 1 COMP1511 18s1 Lecture 1 1 Numbers In, Numbers Out Andrew Bennett more printf variables scanf 2 Before we begin introduce yourself to the person sitting next to you why did

More information

Agenda. My Introduction. CIS 154 Javascript Programming

Agenda. My Introduction. CIS 154 Javascript Programming CIS 154 Javascript Programming Brad Rippe brippe@fullcoll.edu Agenda Brief Javascript Introduction Course Requirements Brief HTML review On to JavaScript Assignment 1 Due Next week Helpful Tools Questions/Comments

More information

Introduction to Programming in Turing. Input, Output, and Variables

Introduction to Programming in Turing. Input, Output, and Variables Introduction to Programming in Turing Input, Output, and Variables The IPO Model The most basic model for a computer system is the Input-Processing-Output (IPO) Model. In order to interact with the computer

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

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

HHH Instructional Computing Fall

HHH Instructional Computing Fall Quick Start Guide for School Web Lockers Teacher log-on is the same as for Infinite Campus Student log-on is the same initial log on to the network except no school year is required before their user name

More information

CS 1110: Introduction to Computing Using Python Loop Invariants

CS 1110: Introduction to Computing Using Python Loop Invariants CS 1110: Introduction to Computing Using Python Lecture 21 Loop Invariants [Andersen, Gries, Lee, Marschner, Van Loan, White] Announcements Prelim 2 conflicts due by midnight tonight Lab 11 is out Due

More information

Adding Pages. Adding pages to your website is simple and powerful! In just a few minutes you can create a page that: Highlights a special event

Adding Pages. Adding pages to your website is simple and powerful! In just a few minutes you can create a page that: Highlights a special event A STEP-BY-STEP A STEP-BY-STEP GUIDE GUIDE TO TO UPDATING ADDING PAGES NAVIGATION ACADEMY Adding Pages Adding pages to your website is simple and powerful! In just a few minutes you can create a page that:

More information

Download the script. Download and Configure Formmail.PHP

Download the script. Download and Configure Formmail.PHP Download and Configure Formmail.PHP Please note: in order to use a form script on your own server, your host must be running PHP. Check with your host that you have this facility. Download the script Go

More information

Website Development (WEB) Lab Exercises

Website Development (WEB) Lab Exercises Website Development (WEB) Lab Exercises Select exercises from the lists below to complete your training in Website Development and earn 125 points. You do not need to do all the exercises listed, except

More information

Easy Chair Online Conference Submission, Tracking and Distribution Process: Getting Started

Easy Chair Online Conference Submission, Tracking and Distribution Process: Getting Started Easy Chair Online Conference Submission, Tracking and Distribution Process: Getting Started AMS WMC 2014 Click on play to begin show AMS Conference Information You can always access information about the

More information

Variables: Objects in R

Variables: Objects in R Variables: Objects in R Basic R Functionality Introduction to R for Public Health Researchers Common new users frustations 1. Different versions of software 2. Data type problems (is that a string or a

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

YCL Session 4 Lesson Plan

YCL Session 4 Lesson Plan YCL Session 4 Lesson Plan Summary In this session, students will learn about functions, including the parts that make up a function, how to define and call a function, and how to use variables and expression

More information

Discussion 1H Notes (Week 3, April 14) TA: Brian Choi Section Webpage:

Discussion 1H Notes (Week 3, April 14) TA: Brian Choi Section Webpage: Discussion 1H Notes (Week 3, April 14) TA: Brian Choi (schoi@cs.ucla.edu) Section Webpage: http://www.cs.ucla.edu/~schoi/cs31 More on Arithmetic Expressions The following two are equivalent:! x = x + 5;

More information

Dreamweaver 101. Here s the desktop icon for Dreamweaver CS5: Click it open. From the top menu options, choose Site and New Site

Dreamweaver 101. Here s the desktop icon for Dreamweaver CS5: Click it open. From the top menu options, choose Site and New Site Dreamweaver 101 First step: For your first time out, create a folder on your desktop to contain all of your DW pages and assets (images, audio files, etc.). Name it. For demonstration, I ll name mine dw_magic.

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

Web-CAT Guidelines. 1. Logging into Web-CAT

Web-CAT Guidelines. 1. Logging into Web-CAT Contents: 1. Logging into Web-CAT 2. Submitting Projects via jgrasp a. Configuring Web-CAT b. Submitting Individual Files (Example: Activity 1) c. Submitting a Project to Web-CAT d. Submitting in Web-CAT

More information

Lab 2 Building on Linux

Lab 2 Building on Linux Lab 2 Building on Linux Assignment Details Assigned: January 28 th, 2013. Due: January 30 th, 2013 at midnight. Background This assignment should introduce the basic development tools on Linux. This assumes

More information

Parent Instructions for Accessing Elmira Heights Parent Portal (SchoolTool)

Parent Instructions for Accessing Elmira Heights Parent Portal (SchoolTool) Parent Instructions for Accessing Elmira Heights Parent Portal (SchoolTool) First time log in: First, you will need to open Schooltool. To do this, open an internet explorer screen and type the following

More information

WEBD 236 Lab 5. Problem

WEBD 236 Lab 5. Problem WEBD 236 Lab 5 If you use an external source (i.e. a web-page, the required textbook, or an additional book) to help you answer the questions, then be sure to cite that source. You should probably always

More information

PHP Online Training. PHP Online TrainingCourse Duration - 45 Days. Call us: HTML

PHP Online Training. PHP Online TrainingCourse Duration - 45 Days.  Call us: HTML PHP Online Training PHP is a server-side scripting language designed for web development but also used as a generalpurpose programming language. PHP is now installed on more than 244 million websites and

More information

Table of contents. DMXzone Universal Form Validator ASP DMXzone.com

Table of contents. DMXzone Universal Form Validator ASP DMXzone.com Table of contents About DMXzone Universal Form Validator ASP... 2 Features in Detail... 3 Before you begin... 7 Installing the extension... 7 The Basics: Checkout Form Validation with the DMXzone Universal

More information

Using Dreamweaver CS6

Using Dreamweaver CS6 6 So far we have used CSS to arrange the elements on our web page. We have also used CSS for some limited formatting. In this section we will take full advantage of using CSS to format our web site. Just

More information

CMSC 201 Fall 2016 Lab 09 Advanced Debugging

CMSC 201 Fall 2016 Lab 09 Advanced Debugging CMSC 201 Fall 2016 Lab 09 Advanced Debugging Assignment: Lab 09 Advanced Debugging Due Date: During discussion Value: 10 points Part 1: Introduction to Errors Throughout this semester, we have been working

More information

ScholarOne Manuscripts Author Guide

ScholarOne Manuscripts Author Guide ScholarOne Manuscripts Author Guide Getting Started Logging In If you have not accessed the website before you will need to create your own account. Please click on the Create Account link found on the

More information

Roxen Content Provider

Roxen Content Provider Roxen Content Provider Generation 3 Templates Purpose This workbook is designed to provide a training and reference tool for placing University of Alaska information on the World Wide Web (WWW) using the

More information

Part 2 Uploading and Working with WebCT's File Manager and Student Management INDEX

Part 2 Uploading and Working with WebCT's File Manager and Student Management INDEX Part 2 Uploading and Working with WebCT's File Manager and Student Management INDEX Uploading to and working with WebCT's File Manager... Page - 1 uploading files... Page - 3 My-Files... Page - 4 Unzipping

More information

Adding Pages. Adding pages to your website is simple and powerful! In just a few minutes you can create a page that: Highlights a special event

Adding Pages. Adding pages to your website is simple and powerful! In just a few minutes you can create a page that: Highlights a special event A STEP-BY-STEP A STEP-BY-STEP GUIDE GUIDE TO TO UPDATING ADDING PAGES NAVIGATION ACADEMY Adding Pages Adding pages to your website is simple and powerful! In just a few minutes you can create a page that:

More information

Dreamweaver CS6. Table of Contents. Setting up a site in Dreamweaver! 2. Templates! 3. Using a Template! 3. Save the template! 4. Views!

Dreamweaver CS6. Table of Contents. Setting up a site in Dreamweaver! 2. Templates! 3. Using a Template! 3. Save the template! 4. Views! Dreamweaver CS6 Table of Contents Setting up a site in Dreamweaver! 2 Templates! 3 Using a Template! 3 Save the template! 4 Views! 5 Properties! 5 Editable Regions! 6 Creating an Editable Region! 6 Modifying

More information

CMSC 201 Fall 2018 Lab 04 While Loops

CMSC 201 Fall 2018 Lab 04 While Loops CMSC 201 Fall 2018 Lab 04 While Loops Assignment: Lab 04 While Loops Due Date: During discussion, September 24 th through September 27 th Value: 10 points (8 points during lab, 2 points for Pre Lab quiz)

More information

Our First Programs. Programs. Hello World 10/7/2013

Our First Programs. Programs. Hello World 10/7/2013 Our First Programs C# Programming Rob Miles Programs In the practical session last week we created a number of programs In this session we are going to look at each program and see how it works/what it

More information

Using IDLE for

Using IDLE for Using IDLE for 15-110 Step 1: Installing Python Download and install Python using the Resources page of the 15-110 website. Be sure to install version 3.3.2 and the correct version depending on whether

More information

Programming with Python

Programming with Python Programming with Python Dr Ben Dudson Department of Physics, University of York 21st January 2011 http://www-users.york.ac.uk/ bd512/teaching.shtml Dr Ben Dudson Introduction to Programming - Lecture 2

More information

ICOM 4015 Advanced Programming Laboratory. Chapter 1 Introduction to Eclipse, Java and JUnit

ICOM 4015 Advanced Programming Laboratory. Chapter 1 Introduction to Eclipse, Java and JUnit ICOM 4015 Advanced Programming Laboratory Chapter 1 Introduction to Eclipse, Java and JUnit University of Puerto Rico Electrical and Computer Engineering Department by Juan E. Surís 1 Introduction This

More information

5.5 Complex Fractions

5.5 Complex Fractions 5.5 Complex Fractions At this point, right after we cover all the basic operations, we would usually turn our attention to solving equations. However, there is one other type of rational expression that

More information