<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to support-requests</title><link>https://sourceforge.net/p/ocaml-cgi/support-requests/</link><description>Recent changes to support-requests</description><atom:link href="https://sourceforge.net/p/ocaml-cgi/support-requests/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sat, 08 Jul 2006 14:24:07 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/ocaml-cgi/support-requests/feed.rss" rel="self" type="application/rss+xml"/><item><title>Want example of getting CGI field.</title><link>https://sourceforge.net/p/ocaml-cgi/support-requests/1/</link><description>What would be a demo CamlGI script to say, i.e.:

If cgi variable "foo" has value "1", print
"&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;&amp;lt;h1&amp;gt;Yes&amp;lt;/h1&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;".

Else if foo has value "0", print
"&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;&amp;lt;h1&amp;gt;No&amp;lt;/h1&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;".

Else if foo is undefined, print
"&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;&amp;lt;h1&amp;gt;Undefined&amp;lt;/h1&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;"?

I want to do some CGI programming as I'm teaching
myself OCaml, and if I have a demo program that shows
how to query CGI values \(plus, unrelated, a good grasp
on Marshal\), I've got a good start.

Do you have any simple sample programs in CamlGI?

Thank you,
Jonathan Hayward
Jonathan.Hayward@pobox.com
http://JonathansCorner.com</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sat, 08 Jul 2006 14:24:07 -0000</pubDate><guid>https://sourceforge.netde2c787fb5404819849a171f63f01aa287cbf549</guid></item></channel></rss>