• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/12

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

12 Cards in this Set

  • Front
  • Back

HTML

hyper text markup language

HTML tags

keywords surrounded by angle brackets

web application

a program (script) that generates a web page dynamically. the application runs every time the web browser loads the page

HTML forms

used to collect user input. contains form elements. send data to the webserver as specified by a parameter called action









form elements

different types of input elements, checkboxes, radio buttons, submit buttons, etc.

action attribute

defines the action to be performed when the form is submitted

name attirbute

specifies a name used to identify the form

Common Gateway Interface (CGI)

application waiting to process a form. requires a non-trivial script on the server to process the data.


Python's CGI module provides access to a dict of all form fields and their values:


cgi.FieldStorage() function




if form.has_key("NAME"):


name = form["NAME"].value


print hello(name)

checklist for resolving INTERNAL SERVER ERRORS

1. python syntax error - do "run/check module" within IDLE and fix all errors


2. Missing or incorrect shebang line; should be: #!usr/bin/python


3. incorrect permissions: should be 755


4. missing HTTP headers (ie. "Content-type: text/html" followed by print


5. smart quotes are NOT valid ASCII characters. must be " " and ' '

HTML Links

enables us to create hypertext references (links) - a text or an image you can click on, and jump to another document




how to do a link:


Boston University Web Page

shebang line

#!/usr/bin/python




a directive to tell the web server where to find the python interpreted

main section of the program

if statement:


if__name__==__"main__":