Hi Henrik,

> Another question, I have a small upload form I want to use, again without
> (action) or (app), is this possible?

Here is a simple example:

################################################################
#!bin/picolisp lib.l

(load "ext.l" "lib/http.l" "lib/xhtml.l")

(de start ()
   (html 0 "Upload" "lib.css" NIL
      (<post> NIL "@importOpml"
         (<upload> 10 '*OpmlFile)
         (<submit> "Import") ) ) )

(de importOpml ()
   (out 2 (in (tmp *OpmlFile) (echo))) )

(server 8080 "@start")
################################################################

Start it as ./upl in the PicoLisp installation directory.

The POST will return the file name in the variable '*OpmlFile'. The file
itself will then be found in a 'tmp' file with that name, i.e. the file
"tmp/<pid>/name".

In the example above, 'importOpml' simply echoes the file contents to
standard error.

Cheers,
- Alex
-- 
UNSUBSCRIBE: mailto:[EMAIL PROTECTED]

Reply via email to