[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Newbie HTML-form questions
From: |
Peter Bex |
Subject: |
Re: [Chicken-users] Newbie HTML-form questions |
Date: |
Thu, 11 Dec 2008 09:45:03 +0100 |
User-agent: |
Mutt/1.4.2.3i |
On Thu, Dec 11, 2008 at 09:21:31AM +0100, Basile STARYNKEVITCH wrote:
> Hello All,
>
> (I'm sending a couple of questions, each unrelated question in a
> separate email. I hope it is right).
>
> Again some newbie questions regarding Chcken and HTML/HTTP:
>
> * using html-form and http-server, how do I conveinently build a simple
> login HTML form (with the usual two fields username and password). I e
> what is the code that I can call from a http:add-resource
>
> Apparently html-form gives a structured HTML form, not a string which I
> could display; And I'm looking for the function to output it on
> (current-output).
I don't know html-form, but its documentation says that it outputs SXML.
You can output SXML using the sxml-transforms egg.
You can use either the specific
(SXML->HTML <your form>)
or the more generic
(SRV:send-reply (pre-post-order <your form> universal-conversion-rules))
For more info about SXML, see the references on the sxml-transforms
wiki page.
Cheers,
Peter
--
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
is especially attractive, not only because it can be economically
and scientifically rewarding, but also because it can be an aesthetic
experience much like composing poetry or music."
-- Donald Knuth
pgpfIp5sH3SsS.pgp
Description: PGP signature