From: Hudson R. <hud...@so...> - 2002-10-16 14:45:43
|
Hi Tom, Bernard, Sorry to have not answered yet. :( > I have tried the examples that was in an email by Hudson Reis. I can output to the web server, but the example code that was provided, I have not be able to read the "$QUERY_STRING". Nothing is returned. Well... This is not good. I have attached an example and after that, please, tell me what happenned. These examples tell about the following subjects: - tweb02a.html/tweb02a.cob -> Get values from browser. - tweb02l.html/tweb02l.cob -> Get cookie values from browser. > I am using .58 (?) of TinyCobol, and the lasted apache version that is supplied with RedHat 7.3. This is not the problem. With my examples in hand, try this: 1. Start your webserver. (/etc/rc.d/init.d/httpd start) 2. put the files tweb02a.html and tweb02l.html in your html directory and pass the necessary permissions. (chmod 755 tweb02a.html tweb02l.html) (cp tweb02a.html /home/httpd/html) (cp tweb02l.html /home/httpd/html) 3. compile the file tweb02a.cob and tweb02l.cob (htcobol tweb02a.cob) (htcobol tweb02l.cob) 4. put the binaries tweb02a and tweb02l in your cgi-bin directory and pass the necessary permission. (chmod 755 tweb02a tweb02l) (cp tweb02a /home/httpd/cgi-bin) (cp tweb02l /home/httpd/cgi-bin) 5. call the file tweb02a.html and tweb02l.html from your browser (lynx http://localhost/tweb02a.html) (lynx http://localhost/tweb02l.html) 6. Type some values and click in ok. 7. See the values in browser's output. Hope this helps. Hudson |