Understanding CGI and Web Interaction Through HTML Form Example
170 likes | 302 Vues
This overview explores the application of CGI in web development, using a sample HTML form to showcase how user input can be processed. The form allows users to enter words, which are then sorted using a specified CGI script. It emphasizes the simplicity of crafting basic HTML and the complexities that can arise when using software-generated content. By engaging with hands-on experiences, users can demystify HTML and enhance their understanding of web technologies. An introduction to useful resources for learning HTML is also provided.
Understanding CGI and Web Interaction Through HTML Form Example
E N D
Presentation Transcript
The major camp • CGI and the Web
Web overview • For some of these graphics, thanks Bob Elson & John Faughnan at... http://www.nmsr.labmed.umn.edu/~relson/talks/aafp97/wwwinpractice/controls/slidelist.html
<head><TITLE> 458 Sample Application </TITLE></head> <BODY> <H1> This is the C drive Sorting words </H1> <!-- You might want to play with branch1, etc.--> <FORM method="post" action="http://localhost/cgi-win/http2lsp.exe?((command+lisp00)(dan+hello)n)"> Enter some words and I'll sort them for you <p> <INPUT TYPE="text" NAME="word1" size=20 value="red"> <-- secret bonus word! <br> <INPUT TYPE="text" NAME="word2" size=20 value="blue"><br> <INPUT TYPE="text" NAME="word3" size=20 value="green"><br> <INPUT TYPE="text" NAME="word4" size=20 value="gold"><br> <INPUT TYPE="hidden" NAME="lisp00-state" value=":sent-initial-input"><P> <INPUT TYPE="submit" VALUE="Submit Words"> </FORM> </BODY>
HTML • No mystery. Find one of several thousand sites that explain how to use it. NCSA at U of I is a good one. • HTML only gets complex when it is created by software -- and this is then artificially complex. • Write some basic HTML yourself to demystify it. Use an editor (such as MS Word) for more extensive documents.