Searching a Database Creating a Form for Users to Search a Database.

Slides:



Advertisements
Similar presentations
Document Properties: adding information to your Microsoft Office documents Step 1: Add information to Document Properties What are Document Properties.
Advertisements

1 After completing this lesson, you will be able to: Create a new presentation using a design template. Enter text in the Slide pane. Create a new slide.
Creating a Login Process Creating a users table and a login form that denies access to unauthorized users.
Session Variables Storing Session Variables on the Server.
Learning the Basics – Lesson 1
Dawn Pedersen Art Institute. What is Spry? Spry is Dreamweaver’s version of JavaScript libraries. Spry effects alter the look of a page element—or of.
Microsoft Office 2007: Introductory Computer Applications 11.
Microsoft Excel 2010 Chapter 7
Integrating Access with the Web and with Other Programs.
Microsoft Office 2007 Access Integration Feature Sharing Data Among Applications.
SUNY Morrisville-Norwich Campus- Week 7 CITA 130 Advanced Computer Applications II Spring 2005 Prof. Tom Smith.
Creating a Users Table The users table contains a list of your site’s authorized users, logins, and passwords.
Creating a Site Defining the Local site Setting up the Remote Site Identifying the Testing Server.
XP New Perspectives on Microsoft Office Excel 2003, Second Edition- Tutorial 11 1 Microsoft Office Excel 2003 Tutorial 11 – Importing Data Into Excel.
Master Detail Page Set Enabling Users to See More Detailed Data.
Document Basics Lesson 2. Skills Matrix SKILL #MATRIX SKILL 1.1.2Apply Quick Styles to documents 1.1.3Format documents using themes 1.1.4Customize a theme.
Designing a Classroom Web Site Using NVU Beginning Level.
1 ADVANCED MICROSOFT WORD Lesson 15 – Creating Forms and Working with Web Documents Microsoft Office 2003: Advanced.
Integrating Microsoft Project with Other Programs
Creating a Website. Unit Objectives Plan a website Create a folder for website management Set up a website Add a folder to a website Save a web page Copy.
Lesson 13: Building Web Forms Introduction to Adobe Dreamweaver CS6 Adobe Certified Associate: Web Communication using Adobe Dreamweaver CS6.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 1 – Access Basics.
Installing the SAFARIODBC.EXE For use with Excel May 3, 2002.
Tutorial 10 Adding Spry Elements and Database Functionality Dreamweaver CS3 Tutorial 101.
HTML, XHTML, and CSS Chapter 12 Creating and Using XML Documents.
Creating a Survey Using Dreamweaver’s Record Insertion Form Wizard.
Creating a Web Site to Gather Data and Conduct Research.
Website Development with Dreamweaver
Chapter 6 Generating Form Letters, Mailing Labels, and a Directory
Introduction to MS WORD.
Uploading Your Page to the Internet Configuring FTP on Dreamweaver.
How to Setup MS Word for a Research Paper Steps and Procedures.
1 OPOL Training (OrderPro Online) Prepared by Christina Van Metre Independent Educational Consultant CTO, Business Development Team © Training Version.
This tutorial teaches Microsoft Word basics. Although knowledge of how to navigate in a Windows environment is helpful, this tutorial was created for.
Happy Monday!!!  Open the Agenda  Copy it in your Agenda form.  Wait for further instructions.
Microsoft Visual Basic 2012 CHAPTER THREE Program Design and Coding.
Microsoft Visual Basic 2010 CHAPTER THREE Program Design and Coding.
Chapter 1 Creating a Dreamweaver Web Page and Local Site
Dreamweaver MX. 2 Overview of Templates n Forms enable you to collect data from ______. n A form contains ________ such as text fields, radio buttons,
Macromedia Dreamweaver 8-- Illustrated Introductory 1 Macromedia Dreamweaver 8 Unit B Creating a Web Site.
Microsoft Expression Web-Illustrated Unit E: Working with Pictures.
Using Microsoft Word & Excel §Open a new document in MS Word §Click on Tools & then Mail Merge l a dialogue box, like the one on this page, will appear.
1 After completing this lesson, you will be able to: Change the format of a table. Sort records in a table. Find records in a table Use filters with a.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 7 – Creating and Using Templates in a Web.
Paging Through a Data Table Creating a Navigation Bar Using the Recordset Navigation Bar Server Behavior.
Lesson 10 - Mail Merge and Reviewing Documents Advanced Microsoft Word.
Instructions.  Open up the letter that Adam has given to you  Format it so it look professional.
Slide 1 (of 16) 1) Launch Dreamweaver 8. 2)Under Site, choose New Site. Stanford Continuing Studies CS 22 · Enhanced Web Site Design Week Two DREAMWEAVER.
Fall 2003Sylnovie Merchant, Ph.D. ACCESS Tutorial Note: The purpose of this tutorial is to provide an introduction to some of the functions of ACCESS in.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
January 2006Colby College ITS Setting Up Course Pages.
Modal Dialogs. What is a Modal Dialog? A modal dialog is a separate window that remains in focus until it is closed by the user. During this time the.
1 After completing this lesson, you will be able to: Get around the Internet with your browser. Connect to the Internet. Print Web pages. Save Web pages.
Introducing Dreamweaver. Dreamweaver The web development application used to create web pages Part of the Adobe creative suite.
MS-Excel XP Lesson 7. Creating Charts 1.Excel for windows can produce 14 standard type and 20 custom types of graphs or charts, with many different format.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 8 1 Microsoft Office Access 2003 Tutorial 8 – Integrating Access with the.
Chapter 28. Copyright 2003, Paradigm Publishing Inc. CHAPTER 28 BACKNEXTEND 28-2 LINKS TO OBJECTIVES Table Calculations Table Properties Fields in a Table.
Web and Multimedia Development Copyright © Genetic Computer School 2007WM LESSON OVERVIEW  Use of Tables  Creating Tables  Try It – 1  Creating.
Happy Tuesday!!!  Open the Agenda and the class work (CW #2)  You will be working on your own. Just follow the steps on the hand- outs.  I will be going.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
Education And Training CTC IT DIVISION PivotLink User Training April 2010.
XP New Perspectives on Creating Web Pages With Word Tutorial 1 1 Creating Web Pages With Word Tutorial 1.
Lesson 17 Mail Merge. Overview Create a main document. Create a data source. Insert merge fields into a main document. Perform a mail merge. Use data.
Mail Merge Introduction to Word Processing ITSW 1401 Instructor: Glenda H. Easter Introduction to Word Processing ITSW 1401 Instructor: Glenda H. Easter.
Displaying a Data Table
Microsoft Office Access 2003
Microsoft Office Access 2003
Grauer and Barber Series Microsoft Access Chapter One
Step 1:. Open Microsoft FrontPage application.
Presentation transcript:

Searching a Database Creating a Form for Users to Search a Database

Overview Searching a Database To enable users to search a databse, you begin by creating a form that prompts users for the field(s) to be searched. You make the form’s action be a dynamic Web page, such as an ASP. On the ASP page, you create a RecordSet that uses the search form’s data as input; thus, the Recordset contains the search results. As a final touch, you display the RecordSet onscreen, thereby showing the user the search results.

Prerequisites Defining a Database These instructions assume that you have already defined a data source for this Web site. The data source contains the data table that your search form will search. If you have not defined the data source, do so following the instructions provided earlier in the lesson on data driven Webs.data driven Webs

Step One Create the Search Page Use Dreamweaver to open the site in which you want to create the login form. Pull down the File menu and choose New to bring up the New Document dialog. Select the Dynamic Page category to make the Dynamic Page options appear. Select ASP JavaScript and click the Create button; the new page appears. Pull down the File menu, choose Save, and save the file in your site’s local root folder; in this example, make the filename be SearchForm.asp.

Step Two Put a Search Form on the Search Page Pull down the menu at the left edge of the toolbar and choose forms; the form tools appear on the toolbar: Use the Form tools to insert a form and create a search field; make the name of the field match the name of the corresponding data field. If you are creating a form to search the LastName column of the Users table, for example, make the search field’s name be LastName. Insert a label to identify the search field onscreen. Type any instructions you want the user to see. Insert a submit button and make its text be Search. Make the form’s action be the dynamic Web page that will conduct the search and display the results; in this example, make the action be SearchResults.asp. Use Dreamweaver to format the form as you wish, then save the file.

Step Three Create the Results Page Pull down the File menu and choose New to bring up the New Document dialog. Select the Dynamic Page category to make the Dynamic Page options appear. Select ASP JavaScript and click the Create button; the new page appears. Pull down the File menu, choose Save, and save the file in your site’s local root folder; in this example, make the filename be SearchResults.asp.

Step Four Create a Recordset of the Search Results While you are on the SearchResults.asp page, click the Bindings tab of the Application window, or pull down the Window menu and choose Bindings. Click the plus sign button and choose recordset to make the recordset dialog appear. Customize the Name field to suit your application. In this example, make the Name field say SearchResults. Choose the connection that contains the table. Select the data table containing all of the data. Select the data fields you want displayed in the search results; in this example, choose all the data fields.

Step Four (continued) Create a Recordset of the Search Results Pull down the Filter field and choose the name of the data column being searched. In this example, choose LastName:

Step Four (completed) Create a Recordset of the Search Results Pull down the field under the Filter field and set it to Form Variable; this makes the search pick up data from the incoming form. Make the form variable’s name be the name of the field on your form. In this example, the field is: LastName Click the Test button to test your search setup. Click OK to close the Recordset dialog.

Step Five Display the Recordset of Search Results Click to position the cursor at the spot on the page where you want to display the data. Pull down the menu at the left edge of the toolbar and choose Application; the Application tools appear on the toolbar: In the Application toolbar, click the Dynamic Table tool to make the Dynamic Table dialog appear.

Step Five (continued) Display the Recordset of Search Results Fill out the Dynamic Table Dialog to make it display the Recordset containing your search results, then click OK:

Step Six Publish and Test the Pages Save and publish to your Web site the SearchResults.asp page. In Dreamweaver, click to position your cursor anywhere on the SearchForm.asp page, then press F12 to publish and test it. When the Search form appears in your browser, fill out the form and click the Search button.

Step Seven Secure the Pages Troubleshoot any problems until you get the search working correctly. If the search form and the search results are to be viewed only by authorized users, pull down the Application toolbar’s User Authentication menu and choose Restrict Access to Page. If you have not yet set up a Login procedure, see the lesson on the Login Process.Login Process