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