| 1 | <HTML> <HEAD> |
| 2 | <TITLE>More Examples of Scripts Created with CGI.pm</TITLE> |
| 3 | </HEAD> |
| 4 | |
| 5 | <BODY> |
| 6 | <H1>More Examples of Scripts Created with CGI.pm</H1> |
| 7 | |
| 8 | <H2> Basic Non Sequitur Questionnaire</H2> |
| 9 | <UL> |
| 10 | <LI> <A HREF="tryit.cgi">Try the script</A> |
| 11 | <LI> <A HREF="tryit.txt">Look at its source code</A> |
| 12 | </UL> |
| 13 | |
| 14 | <H2> Advanced Non Sequitur Questionnaire</H2> |
| 15 | <UL> |
| 16 | <LI> <A HREF="monty.cgi">Try the script</A> |
| 17 | <LI> <A HREF="monty.txt">Look at its source code</A> |
| 18 | </UL> |
| 19 | |
| 20 | <H2> Save and restore the state of a form to a file</H2> |
| 21 | <UL> |
| 22 | <LI> <A HREF="save_state.cgi">Try the script</A> |
| 23 | <LI> <A HREF="save_state.txt">Look at its source code</A> |
| 24 | </UL> |
| 25 | |
| 26 | <H2> Server Push</H2> |
| 27 | <ul> |
| 28 | <li><a href="nph-multipart.cgi">Try the script</a> |
| 29 | <li><a href="nph-multipart.txt">Look at its source code</a> |
| 30 | </ul> |
| 31 | |
| 32 | <H2> Read the coordinates from a clickable image map</H2> |
| 33 | <UL> |
| 34 | <LI> <A HREF="clickable_image.cgi">Try the script</A> |
| 35 | <LI> <A HREF="clickable_image.txt">Look at its source code</A> |
| 36 | </UL> |
| 37 | |
| 38 | <H2> Multiple independent forms on the same page</H2> |
| 39 | <UL> |
| 40 | <LI> <A HREF="multiple_forms.cgi">Try the script</A> |
| 41 | <LI> <A HREF="multiple_forms.txt">Look at its source code</A> |
| 42 | </UL> |
| 43 | |
| 44 | <H2> How to maintain state on a page with internal links</H2> |
| 45 | <UL> |
| 46 | <LI> <A HREF="internal_links.cgi">Try the script</A> |
| 47 | <LI> <A HREF="internal_links.txt">Look at its source code</A> |
| 48 | </UL> |
| 49 | |
| 50 | <h2>Echo fatal script errors to the browser</h2> |
| 51 | <em>This script deliberately generates a compile-time error.</em> |
| 52 | <ul> |
| 53 | <li><a href="crash.cgi">Try the script</a> |
| 54 | <li><a href="crash.txt">Look at its source code</a> |
| 55 | </ul> |
| 56 | |
| 57 | <EM>The Following Scripts Work with Netscape Navigator 2.0 and higher, |
| 58 | or Internet Explorer 3.0 and higher</EM> |
| 59 | |
| 60 | <H2> Prompt for a file to upload and process it</H2> |
| 61 | <UL> |
| 62 | <LI> <A HREF="file_upload.cgi">Try the script</A> |
| 63 | <LI> <A HREF="file_upload.txt">Look at its source code</A> |
| 64 | </UL> |
| 65 | |
| 66 | <h2> A Continuously-Updated Page using Server Push</h2> |
| 67 | <ul> |
| 68 | <li><a href="nph-clock.cgi">Try the script</a> |
| 69 | <li><a href="nph-clock.txt">Look at its source code</a> |
| 70 | </ul> |
| 71 | |
| 72 | <h2>Compute the "diff" between two uploaded files</h2> |
| 73 | <ul> |
| 74 | <li><a href="diff_upload.cgi">Try the script</a> |
| 75 | <li><a href="diff_upload.txt">Look at its source code</a> |
| 76 | </ul> |
| 77 | |
| 78 | <h2>Maintain state over a long period with a cookie</h2> |
| 79 | <ul> |
| 80 | <li><a href="cookie.cgi">Try the script</a> |
| 81 | <li><a href="cookie.txt">Look at its source code</a> |
| 82 | </ul> |
| 83 | |
| 84 | <h2>Permanently customize the appearance of a page with a cookie</h2> |
| 85 | <ul> |
| 86 | <li><a href="customize.cgi">Try the script</a> |
| 87 | <li><a href="customize.txt">Look at its source code</a> |
| 88 | </ul> |
| 89 | |
| 90 | <h2> Popup the response in a new window</h2> |
| 91 | <ul> |
| 92 | <li><a href="popup.cgi">Try the script</a> |
| 93 | <li><a href="popup.txt">Look at its source code</a> |
| 94 | </ul> |
| 95 | |
| 96 | <h2> Side-by-side form and response using frames</h2> |
| 97 | <ul> |
| 98 | <li><a href="frameset.cgi">Try the script</a> |
| 99 | <li><a href="frameset.txt">Look at its source code</a> |
| 100 | </ul> |
| 101 | |
| 102 | <h2>Verify the Contents of a fill-out form with JavaScript</h2> |
| 103 | <ul> |
| 104 | <li><a href="javascript.cgi">Try the script</a> |
| 105 | <li><a href="javascript.txt">Look at its source code</a> |
| 106 | </ul> |
| 107 | |
| 108 | <HR> |
| 109 | <MENU> |
| 110 | <LI> <A HREF="../cgi_docs.html">CGI.pm documentation</A> |
| 111 | <LI> <A HREF="../CGI.pm.tar.gz">Download the CGI.pm distribution</A> |
| 112 | </MENU> |
| 113 | <HR> |
| 114 | <ADDRESS>Lincoln D. Stein, lstein@genome.wi.mit.edu<br> |
| 115 | <a href="/">Whitehead Institute/MIT Center for Genome Research</a></ADDRESS> |
| 116 | <!-- hhmts start --> |
| 117 | Last modified: Wed Jun 23 15:31:47 EDT 1999 |
| 118 | <!-- hhmts end --> |
| 119 | </BODY> </HTML> |