Exercises, Questions, and Projects


  1. Define and describe the following terms: variable, function, expression, event, and form.

  2. What do each of the following tags do (indicate also if the tag is used as part of a pair and any relevant attributes): form, input, select, and option?

  3. How do you do the following tasks?

    1. Specify the handler of a form to be the program handles.php.

    2. Specify a place in a form for the customer to write his or her name.

    3. Specify a set of choices for the customer, allowing only one choice.

    4. Specify a pull-down menu of choices.

    5. Create a button that starts something—say, a call to a function doit()—every three seconds.

    6. Define a JavaScript function that gets called with a number (just the first line of the function definition).

    7. Specify that something—say, a call to a function changeit()—happens when the mouse is moved over an image.

    8. Specify that something—say, a call to a function undoit()—happens when the mouse is moved out from over an image.

    9. Within a JavaScript function, write the first line of a loop that will occur four times.

  4. Construct your own shop, with a different set of products and a different display. For example, you can combine the coffee shop and the mouse rollover examples to produce an online menu in which the radio buttons are pictures of the products and rollover produces price information.

  5. Go online and research the current state of the DOM.




Creating Database Web Applications with PHP and ASP
Creating Database Web Applications with PHP and ASP (Charles River Media Internet & Web Design)
ISBN: 1584502649
EAN: 2147483647
Year: 2005
Pages: 125
Authors: Jeanine Meyer

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net