
 Your job is to make this server more interesting by
 making the content of the web pages more useful and
 dynamic.  This is just like CGI or ASP only much
 easier (and faster!).  Plus, inlike CGI or ASP, you
 can retain static data between hits just by using
 static variables in this program (like any real VB app
 would).

 There are two things we want to do to our web pages.

 1. Search & Replace
    change all occurances of "macro variables" to their
    actual value.  I.E. %NOW% becomes the real-time
    value of Now(), or %HITS% becomes the number of
    hits on the web server.  You can add your own
    macro variables.  They can display small bits
    of data or entire sections of pages.  

    THIS IS AS EASY AS...

    ' Simple search and replace
    HTML = Tools.replace("%MYNAME%", "Erik Olson", HTML)
    HTML = Tools.replace("%NOW%", Now, HTML)
    HTML = Tools.replace("%ARGS%", Args, HTML)
    HTML = Tools.replace("%HITS%.", WebForm.HitCntr.Caption, HTML)
    '
    ' <<<<< YOU ADD MORE HERE >>>>>
    '
    


 2. Live Data Lookup or other Live Action Processes
    allow a user to look up data in a database, submit
    data entry or transactions to a database, or do
    anything else you can imagine.  You can make your
    own search engine, employee database, take orders,
    etc.  If you can code it in VB, you can do it here!

    THIS IS AS EASY AS...

    Select Case UCase(Value("ACTION"))
            Case "TEST"
                OutPut = "<br>This is a test<br>This is a test<br>"
                
    
    
    
        ' <<<<<< YOU ADD MORE HERE >>>>>>
    
            Case Else
                OutPut = "<hr>!! UNKNOWN ACTION: " + Value("ACTION") + " !!<hr>"
    End Select
    	



 HOW DO YOU CUSTOMIZE THIS WEB SERVER?  

 Look at the function in code called "Process".  This
 function has two arguments, HTML and Args.  HTML contains
 the full contents of the web page about to be displayed
 in the user's browser, and Args contains any fields,
 arguments, or parameters that the user sent in addition
 to (or instead of) the page name.  Usually this is done
 by clicking on the SEND button of a form, but it can
 also be done by putting something other than a file
 name after the server's address in the URL location of
 the browser, i.e.
  http://MyServer.com?ACTION=TEST

 Finally, when you run the web server and want to test
 your browser, you can use "http://127.0.0.1/" as the
 name of your web server.  

