10 1 Hidden Fields and E-Mail CGI/Perl Programming By Diane Zak.

Slides:



Advertisements
Similar presentations
Lecture 6/2/12. Forms and PHP The PHP $_GET and $_POST variables are used to retrieve information from forms, like user input When dealing with HTML forms.
Advertisements

Sharing Results- accessing results Hit Search 3 From the Main Menu - Choose Access ReviewNet Sessions 1 Enter as much Search Criteria as you’d like: Last.
XP Browser and Basics1. XP Browser and Basics2 Learn about Web browser software and Web pages The Web is a collection of files that reside.
Creating Web Page Forms. Objectives Describe how Web forms can interact with a server-based program Insert a form into a Web page Create and format a.
Tutorial 6 Working with Web Forms
Guide To UNIX Using Linux Third Edition
Tutorial 6 Working with Web Forms. XP Objectives Explore how Web forms interact with Web servers Create form elements Create field sets and legends Create.
Browser and Basics Tutorial 1. Learn about Web browser software and Web pages The Web is a collection of files that reside on computers, called.
Creating Web Page Forms
1 CS101 Introduction to Computing Lecture 12 Interactive Forms (Web Development Lecture 4)
Web Integration to an Appx Backend Server. Unix web servers + CGI Win2K web servers + ASP Win2K web servers + ODBC Processing requests Generating HTML.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
Reading Data in Web Pages tMyn1 Reading Data in Web Pages A very common application of PHP is to have an HTML form gather information from a website's.
XP Tutorial 6New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Creating Web Page Forms Designing a Product Registration Form Tutorial.
XP Tutorial 6New Perspectives on HTML and XHTML, Comprehensive 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
1 Creating Web Forms in HTML Web forms collect information from customers Web forms include different control elements including: –Input boxes –Selection.
An program As a simple example of socket programming we can implement a program that sends to a remote site As a simple example of socket.
Web111a_chapt06.ppt HTML: Section 6 Forms HTML tags: define data input and/or output Define the Input and/or Output on the web page Do not process the.
INE1020 Introduction to Internet Engineering Tutorial 8 All about Lab 6.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
About Dynamic Sites (Front End / Back End Implementations) by Janssen & Associates Affordable Website Solutions for Individuals and Small Businesses.
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.
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
WEEK 3 AND 4 USING CLIENT-SIDE SCRIPTS TO ENHANCE WEB APPLICATIONS.
Robinson_CIS_285_2005 HTML FORMS CIS 285 Winter_2005 Instructor: Mary Robinson.
2 1 Sending Data Using a Hyperlink CGI/Perl Programming By Diane Zak.
Python CGI programming
Introduction to Programming the WWW I CMSC Summer 2004 Lecture 6.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
1 Accelerated Web Development Course JavaScript and Client side programming Day 2 Rich Roth On The Net
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 7: Web Forms.
Building PERL Scripts on a Windows system* *and running those scripts on an Apache server!
12 1 Redirection CGI/Perl Programming By Diane Zak.
HTML Forms. Today’s Lecture We will try to understand the utility of forms on Web pages We will find out about the various components that are used in.
System Initialization 1)User starts application. 2)Client loads settings. 3)Client loads contact address book. 4)Client displays contact list. 5)Client.
9 1 DBM Databases CGI/Perl Programming By Diane Zak.
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.
Cookies Web Browser and Server use HTTP protocol to communicate and HTTP is a stateless protocol. But for a commercial website it is required to maintain.
1 Chapter 9 – Cookies, Sessions, FTP, and More spring into PHP 5 by Steven Holzner Slides were developed by Jack Davis College of Information Science.
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
11 1 Cookies CGI/Perl Programming By Diane Zak Objectives In this chapter, you will: Learn the difference between temporary and persistent cookies.
Browser User Certificate Mail Box VOMS-Admin Host Tomcat TR1) Users Trusts “VOMS-Admin” server identity. step1 TR2) User Trusts data (Data1, HTML response)
Tutorial 6 Working with Web Forms. XP Objectives Explore how Web forms interact with Web servers Create form elements Create field sets and legends Create.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
Topics Sending an Multipart message Storing images Getting confirmation Session tracking using PHP Graphics Input Validators Cookies.
3 1 Sending Data Using an Online Form CGI/Perl Programming By Diane Zak.
Creating Web Page Forms. Introducing Web Forms Web forms collect information from users Web forms include different control elements including: –Input.
7 1 User-Defined Functions CGI/Perl Programming By Diane Zak.
Introduction to JavaScript CS101 Introduction to Computing.
5 1 Data Files CGI/Perl Programming By Diane Zak.
Copyright © 2003 Pearson Education, Inc. Slide 7-1 The Web Wizard’s Guide to PHP by David Lash.
CP476 Internet Computing CGI1 Cookie –Cookie is a mechanism for a web server recall info of accessing of a client browser –A cookie is an object sent by.
XP Browser and Basics COM111 Introduction to Computer Applications.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
Form Processing Week Four. Form Processing Concepts The principal tool used to process Web forms stored on UNIX servers is a CGI (Common Gateway Interface)
Basic Webpage Design HTML Forms. Objectives Learn how to use HTML to create a form. Explain the concept of forms Know the difference of GET and POST Discuss.
HTML Forms. A form is simply an area that can contain form fields. Form fields are objects that allow the visitor to enter information - for example text.
Since you’ll need a place for the user to enter a search query. Every form must have these basic components: – The submission type defined with the method.
How Web Database Architectures Work CPS181s April 8, 2003.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 6: Creating XHTML Forms Kelly.
Complete Ordering System for Promotional Literature and Samples Quick Reference and Training Guide.
PHP: Further Skills 02 By Trevor Adams. Topics covered Persistence What is it? Why do we need it? Basic Persistence Hidden form fields Query strings Cookies.
Sending data with CGI/Perl Please use speaker notes for additional information!
XP Tutorial 6New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
2440: 141 Web Site Administration Web Forms Instructor: Joseph Nattey.
Introduction to Programming the WWW I
MapServer In its most basic form, MapServer is a CGI program that sits inactive on your Web server. When a request is sent to MapServer, it uses.
Fix Bigpond Error Code 550 Call for Help
Web Systems Development (CSC-215)
PHP-II.
Presentation transcript:

10 1 Hidden Fields and CGI/Perl Programming By Diane Zak

10 2 Objectives In this chapter, you will: Create a form using a CGI script Include a selection list in a form Use a hidden field to pass information from one script to another Send an message using a script

10 3 Introduction When a browser connects to a web server: –Connection or session is opened –After the server has fulfilled the request, the connection is closed Server maintains no information about the session –Will often need to have the server remember information about a session Hidden fields Cookies

10 4 The Sun Travel Web Pages

10 5 The Sun Travel Web Pages Selection list: –HTML form element –List box from which user can select a value or values. Reasons to use: –Less typing for user –Helps maintains data integrity

10 6 Planning the sun1.cgi Script

10 7 Coding the sun1.cgi Script

10 8 Creating a Hidden Field in a Script Like other form elements, a hidden field has both a key and a value –Can be used to save information that would normally be lost when the connection to the server is closed –Not visible on the form However visible in form’s source code –Syntax: print “ \n”;

10 9 Completed sun1.cgi Script

10 Planning and Coding the sun2.cgi Script

10 11 Using a Script to Send Need the Mail::Sendmail module installed –whereis Sendmail.pm (UNIX) –Start  Search  Sendmail.pm (Windows)

10 12 Procedure for using the Mail::Sendmail module: –1. Enter use Mail::Sendmail; –2. Create a hash and assign a value to the appropriate keys below –3. Enter sendmail (hash); Using a Script to Send keyvalue ToRecipient’s address FromSender’s address SubjectMessage subject SmtpSender’s SMTP server MessageMessage to send to recipient

10 13 Completed sun2.cgi Script

10 14 Summary A selection list is a list box from which the user can select a particular value or set of values. You can use a hidden field to pass information from one CGI script to another. Like other form elements, a hidden key has a key and value. –key and value are passed to the server like any other form element

10 15 Summary Unlike other form elements, a hidden field does not appear on the form. You can use the Mail::Sendmail module to send from a script. –Command: use Mail::Sendmail; Enter the information you want to send by in a hash. –keys: To, From, Subject, Smtp, and Message –Send sendmail (hash);