Download presentation
Presentation is loading. Please wait.
Published byConstance Booker Modified over 9 years ago
1
WWW Forms and Search
2
Forms URL - always fetch a particular page What if the information we want varies from time to time and from user to user?
3
Forms
4
Forms - requests to a web-site How to get information from the user When to send the request Where to send the request How to send the user’s information with the request
5
Example form First name Last name
7
Labels Example form First name Last name
8
Labels
9
How to get info from the user Example form First name Last name
10
Parts to an input tag Name - the name that this input information will be given Size - the number of characters that the user can type
11
When to send the request Example form First name Last name
12
When to send the request
13
Where to send the request Example form First name Last name
14
How to send the user information in a URL Example form First name Last name http://icie.cs.byu.edu/cgi/findMe?firstName=Phred&lastName=Phinster
15
How to send the user information in a URL Example form First name Last name http://icie.cs.byu.edu/cgi/findMe?firstName=Phred&lastName=Phinster
16
How to send the user information in a URL Example form First name Last name http://icie.cs.byu.edu/cgi/findMe?firstName=Phred&lastName=Phinster
17
Forms - How does the server respond? Not every URL refers to a page CGI - Common Gateway Interface You can give a server a program and place it at a URL. The server will then run the program and return its result rather than fetch a page
18
Search How do we describe the page that we want?
19
Search How does Google know where that page is? Find as many web pages as you can For each web page prepare a list of words on that page For each word in all of the web keep a list of pages that have that word
20
How does your browser ask for the search
21
CS 100 - Which page?
22
CS 100 - the winner Why? Both have the words CS 100 CS 100 in CS 100 in text
23
Problems with word searches Search for “doctor” What about pages with the word “doctors”? What about pages with the word “physicians”? What about pages about “witch doctors”? What if the page only has a picture of a doctor? What if the only use of the word doctor is in a picture?
24
Blocking pornography The reverse of the search problem I don’t want pages that have this –How do you describe what you don’t want?
25
Blocking pornography Keep a list of all bad sites –If site is on the black list then refuse to make an Internet connection –What if someone creates a new site? Keep a list of bad words and block any URL or page that has those words –What about “Middlesex, England”? –What about “breast cancer”? –What about slang words? –What about pictures?
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.