|
|
Personal tools |
|
Lesson 8FormsIf I were to venture a guess, I think most all of you have filled out a form on the internet and then submitted it. It can be something as simple as a username and password, or something more like your address, phone number etc. Forms bring some power to the web by allowing your users to provide you with valuable information and for them to request information from you. Creating the form is easy. You will learn about several form tags and elements. In order to get the data once the person has submitted it is a little more complicated. Form data is submitted usually using a CGI script. CGI stands for Common Gateway Interface. It is a fancy name for a computer program that receives the data from the form and processes it. The good news is that you do not need to worry about the cgi script. For this lesson we have one already build and sitting on our www.inst5260 server. All you need to know is how to connect your form to the CGI script. Our CGI script was written in the PERL language. If you end up building forms for your school, work, or clients, you should visit with your hosting provider or server administrator about the various cgi scripts they have available and the information you need to know to use them. For our CGI script we have to know the http address of where it is located, and then we need to know what additional data we need to pass to it. Our CGI script processes the forms data then emails it to someone. You will tell it who to email it too, along with the subject heading etc. Here is an example of the html tags and lines you will need to start
off your form. <form method=post
action="http://www.inst5260.usu.edu/cgi-bin/mailto.cgi"> Here is a text box for typing in text These are called "Radio Buttons," give them a try. Only one can be selected at a time. VisaMaster Card American Express These are checkboxes, you can check none, one, or as many as you want. Bananas Utah Idaho Nevada California New Mexico
ReadingsDay 10 ActivitiesExplore the web and find a couple of examples of forms. Most every company has a form of some kind for getting information from customers or potential customers. Technology companies may have a form under their technical support area. The goal here is to locate some examples of forms so you can see how they are designed and get some good ideas for the form you will create. You may wish to view the source code for the form page. In I.E you would go to "view|Source." Your assignment is to create a form for the College of Education at Utah State University. They need a form that collects data from potential students so they can send them some information. The College has determined that the following information should be
collected: Can you find an appropriate graphic to display on the page? This portion of the lesson is worth 8 points. Your page should look professional and be formatted and laid out properly. Now using your form that you created above, apply a few styles to it. These can be internal or external styles. You might use styles for positioning if you like. This part of the lesson is worth 2 points. You will get full credit for applying at least three styles within the form page. Rename your form to lesson8styles.html and upload it. Have it link to the same follow-up page you created above. No need for styles on the follow-up but you can add them if you like. ResourcesReflective QuestionsWhat are some simple things you can do to insure your web pages are accessible to persons with vision loss?
Copyright 2008,
by the Contributing Authors.
Cite/attribute Resource.
factadmin. (2007, October 09). Lesson 8. Retrieved November 24, 2009, from Free Online Course Materials — USU OpenCourseWare Web site: http://ocw.usu.edu/Instructional_Technology/learn-and-apply-html/lesson-8.
This work is licensed under a
Creative Commons License.
|
||
