Converting a Complex Script to use CGI



Hi,
I have a script that runs as a unix shell script that takes an XML
file then parses it performing the tasks that are in the file. in the
event that I need to ask a question or gain user input the question is
held in the xml file allowing me to ask the question and store the
result of <STDIN>...
However I have now been asked to convert this to run as a web page so
that others that are not trust worthy of unix access may use it :(
I have never written a CGI script before so the first thing I tried
was to replace my code that asked questions with a auto generated form
html form... The trouble is that when I do this my script simply
rattles through and creates the form then continues on trying to
execute the commands in the rest of the file without waiting for me to
post the form back with the information in it :(
How would I go about creating a script that asks some questions then
performs commands from them?

Thanks in advance

Peter

.



Relevant Pages

  • Re: DOM-scripting -- FF problem
    ... A document can not be "served as XML"; ... If the document type was an XHTML document type, ... script code which would be necessary in order to achieve a Valid document ... markup characters are regarded literal characters without ...
    (comp.lang.javascript)
  • Re: WINDOWS MEDIA FILE EDITOR - HELP!!!
    ... before (You might want to look at programs like microsofts XML Notepad ... The actual file format can be defined by a DTD ... >but it is all our clients protocol supports) and with this, been encoding asf ... It doesn't recognize the same script file as I once used...get ...
    (microsoft.public.windowsmedia)
  • Re: Thou shalt have no other gods before the ANSI C standard
    ... > I also found out about XML format. ... Madnick had done script command in the mid-60s for CMS ... ... "dot" commands for document formating. ... The difference between the dot commands and GML was ...
    (sci.crypt)
  • Re: WSH in VS.NET 2003?
    ... or will wsh xml include a ... Get the "TechNet Script Center Sample Scripts" ... Other|Useful Scripting Technologies|Saving Data in XML Format ... There is no schema for getting MS. ...
    (microsoft.public.scripting.wsh)
  • Re: Import XML from Command-Line into SQL
    ... Set objBL = CreateObject ... >I'd probably create a mapping schema and a VB Script ... that uses the SQL XML ...
    (microsoft.public.sqlserver.xml)