Defined/Undef my $i; if( defined $i ) #false $i=0; if( defined $i ) #true my %hash; #or %hash=(); defined %hash; #false, hash is empty $hash{“1”}=“one”;

Slides:



Advertisements
Similar presentations
Introduction to HTML
Advertisements

100 points 200 points 400 points 800 points800 points800 points800 points800 points 1600 points 3200 points.
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Basic HTML. What and Where Our biolinx computer has a web server on it. “Apache” is the brand name: it is Open Source software, and it is probably the.
HTML popo.
Adding Dynamic Content to your Web Site
CGI Programming.
1 HTML Markup language – coded text is converted into formatted text by a web browser. Big chart on pg. 16—39. Tags usually come in pairs like – data Some.
Introduction to HTML CPS470 Software Engineering Fall 1998.
Regular Expressions Regular Expression (or pattern) in Perl – is a template that either matches or doesn’t match a given string. if( $str =~ /hello/){
Computing Concepts Advanced HTML: Tables and Forms.
1 Static Web Pages Websites on Servers (The Big Picture) –Apache Tomcat can support static web pages –Primarily intended to support servlets and JSP –Some.
Regular Expressions Quantifiers: / a{3,6}/ - matches “a” repeated 3,4,5,6 times /(abc){3,}/ - matches three or more repetitions of “abc”. /a{3}/ - matches.
CGI programming in Perl Learning Objectives: 1. To understand how a CGI program works in Perl and how to make it runnable in web browsers 2. To learn how.
WWW and Internet The Internet Creation of the Web Languages for document description Active web pages.
Regular Expressions Regular Expression (or pattern) in Perl – is a template that either matches or doesn’t match a given string. if( $str =~ /hello/){
CGI Programming: Part 1. What is CGI? CGI = Common Gateway Interface Provides a standardized way for web browsers to: –Call programs on a server. –Pass.
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
Web Client/Server Communication A290/A590, Fall /09/2014.
Why Worry About the WWW? Intranets -- with lots of HR applications »policies/procedures »job postings »benefits & other transactions »hiring & other workflows.
1 ‘Dynamic’ Web Pages So far, we have developed ‘static’ web-pages, e.g., cv.html, repair.html and order.html. There is often a requirement to produce.
1 Homework / Exam Exam 3 –Solutions Posted –Questions? HW8 due next class Final Exam –See posted schedule Websites on UNIX systems Course Evaluations.
1 HTML and CGI Scripting CSC8304 – Computing Environments for Bioinformatics - Lecture 10.
Computer Science 101 Introduction to Web Pages. Origins of the Web Vannevar Bush (Memex, 1945) Ted Nelson (Xanadu, 1968) Doug Englebart and Alan Kay (
HTML II. Factors to consider in designing a website. Organizing your files. HTML Tables. Unordered Lists. Ordered Lists. HTML Forms. Learning Objectives.
Student Learning Environment on the World Wide Web l CGI-programming in Perl for the connection of databases over the Internet. l Web authoring using Frontpage.
Understanding HTML Code
Perl Web Page – Just Enough Pepper. Web site Set up the top of your script to indicate perl and plain text #!/usr/bin/perl print "Content-type:text/plain\n\n";
Objectives: 1. Create a Skeleton HTML 2. View a Skeleton File Through a Server and Browser 3. Learn HTML Body Tags for the Display of Text and Graphics.
Basic HTML Workshop By: Preeda Chunjongkolkul (Pete) Systems Librarian/Webmaster
1 Introduction to HTML Joshua S. Simon Collective Technologies.
Python CGI programming
USING PERL FOR CGI PROGRAMMING
Introduction to HTML. What is a HTML File?  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup tags  The.
20-753: Fundamentals of Web Programming Copyright © 1999, Carnegie Mellon. All Rights Reserved. 1 Lecture 7: HTTP and CGI Fundamentals of Web Programming.
Just Enough HTML How to Create Basic HTML Documents.
1 Basic Perl CGI Programming. 2 Issues How and when your program is invoked. Generating Response –HTTP Headers –HTML (or whatever document type you want)
Chapter Nine Perl and CGI Programming. 2 Objectives Basic features of Perl language Set up an HTML Web page Use Perl and CGI scripts to make your web.
1 © Copyright 2000 Ethel Schuster The Web… in 15 minutes Ethel Schuster
CPSC 203 Introduction to Computers Lab 33 By Jie Gao.
HTML Basics BCIS 3680 Enterprise Programming. Web Client/Server Architecture 2  Your browser (the client) requests a Web page from a remote computer.
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
Computational Boot Camp HTML Mike Schaffer. 8/23/2002 (MES) HTML What is HTML? HTML stands for HyperText Markup Language HTML is the language for publishing.
Slide No. 1 Slide No. 1 HTML and Web Publishing CS 104 CS 104.
HTML HyperText Markup Language ©Richard L. Goldman July 15, 2003.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
HTLM Forms CS3505. Form Handling in Browser html User Files out form WEbBROWSErWEbBROWSEr User read response submit Get URL?input html Get file html script.
 2001 Prentice Hall, Inc. All rights reserved. Chapter 7 - Introduction to Common Gateway Interface (CGI) Outline 7.1Introduction 7.2A Simple HTTP Transaction.
1 Lecture 12 Lecture 12 Basic HTML ITEC 1000 “Introduction to Information Technology”
Web programming Part 1: HTML 由 NordriDesign 提供
HTML – The Basics COE 201- Computer Proficiency. The Internet The World Wide Web ▫Also known as the Web ▫Created in 1989  European Laboratory for Particle.
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
Building a Web Page. Create A New Folder  Right click on the desktop and select New / Folder  Name the folder playpen.
Take Web Design Presurvey Username: First initial, last name For example, Omar Estrella -> oestrella Password: Same as.
Introduction to HTML C151 Multi-User Operating Systems.
REEM ALMOTIRI Information Technology Department Majmaah University.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
1 HTML: HyperText Markup Language Representation and Management of Data on the Internet.
1999, COMPUTER SCIENCE, BUU Introduction to HTML Seree Chinodom
HTML – The Basics Rebecca Shillingburg
TNPW1 Ing. Jiří Štěpánek.  ordered list  (list item)  unordered list  (list item)
Lesson 11. CGI CGI is the interface between a Web page or browser and a Web server that is running a certain program/script. The CGI (Common Gateway Interface)
1 The Internet Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section
University of Kansas Department of Electrical Engineering and Computer Science Dr. Susan Gauch April 21, 2005 I T T C Introduction to Web Technologies.
Tutorial 1 – Creating Web Pages With HTML
Chapter 7 - Introduction to Common Gateway Interface (CGI)
Introduction to HTML.
Introduction to HTML:.
Elements of HTML Web Design – Sec 3-2
Presentation transcript:

Defined/Undef my $i; if( defined $i ) #false $i=0; if( defined $i ) #true my %hash; #or %hash=(); defined %hash; #false, hash is empty $hash{“1”}=“one”; exists($hash{“1”})==defined($hash{“1”})==true; undef $hash{“1”}; exists($hash{“1”})== false; defined($hash{“1”})==true; delete $hash{“1”}; exists($hash{“1”})== false; defined($hash{“1”})==false;

Basic HTML Document Title Hello World!

Webserver displays a default (in most cases) file: index.html if it doesn’t exist then all files in that directory are listed. To protect server information, usually this option (file listing) is switched off. File Names

Paragraph Next Paragraph. And line break. Unordered List (UL): We Love Perl. We Love Perl IN BOLD We Loooove Perl Now, We Love HTML Too! Horizontal rule (HR): Ordered List (OL): We Love Perl. We Love Perl IN BOLD We Loooove Perl Now, We Love HTML Too!

Link To Images: Image Options: Tables: Cell 1.1 Cell 1.2 Cell 2.1 Cell 2.2

Table Options: Cell Cell Cell Cell Aligned left Aligned right

CGI - Common Gateway Interface CGI – a standard that defines the protocol between a web server and a application (script). Web Browser Web Server Application DB CGI http/ ssl … search example

Sending information to CGI Two ways to submit information: HTML form With URL

CGI - Simple script #!/usr/bin/perl use CGI qw(:standard); print header; $param= param('formtext'); print " Hello CGI: $param"; print end_html;