1. RE: CGI scripts?
- Posted by Brian Broker <bkb at cnw.com> Dec 03, 2001
- 382 views
1. yes 2. yes 3. Have you checked the Euphoria archives? http://www.rapideuphoria.com/cgi-bin/search.cgi?keywords=cgi -- Brian mistertrik at hotmail.com wrote: > I have recently made up my mind to figure out exactly how web pages fit > together... > This necessitated my learning html, javascript etc.. > Now I have not gotten that far down the track (I'm not stuck, it's just > that > I started yesterday), and something occured to me. > > 1.Is it possible to make cgi programs in Euphoria? > > 2.Has it been done before? > > 3.Does someone want to tell me how it's done?
2. RE: CGI scripts?
- Posted by thinkways at YAHOO.COM Dec 09, 2001
- 377 views
1.Your Web server software (apachee, iis, pws ) needs to support cgi. 2.you need to be able to tell your HTTP server how to execute them (i.e. Registry entry, etc...). 3.you need to place your programs in a folder that has execute permissions. I run a small site at work that supports the computer operations staff log on multiple campuses. The default.htm document includes an <iframe> which runs the log_entry.cgi script as it's URL. Because no parameters are initially passed to log_entry the program writes out html forms containing a selection list of operator names culled from a text file, and a selection for one of three shifts. The operator pulls his/her name from the list, selects a shift that corresponds to an appropiate task list file, and hits the submit button. log_entry.cgi is called again upon submit, but this time with form information passed along (shift#,operator). log_entry.cgi recognizes the added parameters and writes out a new HTML page containing a <select> list generated from the shift# tasks file, a general text entry form for comments, and a hidden form with the operator's name in it. Now when the operator pulls down a task from the select list , or makes a comment and hits submit, a new CGI script is called. This one takes the submitted information and appends it to a text file (the log) along with the operator name, and time/date. In order to not be left with a blank <iframe> this script writes out a short html page that includes a javascript code equivelent to hitting the Page Back button, effectively returning to the page that requested it (log_entry.cgi with parameters) > -- Brian > > > > 1.Is it possible to make cgi programs in Euphoria? > > > > 2.Has it been done before? > > ===== ThinkWays! a modular and distributed technical information environment from Modular Reality systems. http://www.geocities.com/SiliconValley/Lab/7577 Live: Useless Web Camera http://www.geocities.com/SiliconValley/Lab/7577/camera.htm Commuter Hell! http://www.geocities.com/SiliconValley/Lab/7577/commute/commute.htm