9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Skip Tavakkolian <skip.tavakkolian@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] simple cgi and POST for plan9?
Date: Thu, 22 Jan 2015 09:53:14 -0800	[thread overview]
Message-ID: <CAJSxfmJSwxD=MWC1ZXr9GamSnfpgfN_QoEHbSMJiy8k5TGDGCA@mail.gmail.com> (raw)
In-Reply-To: <CAJSxfmLsJACX2iBx6nbZAF2BX2nztYA4sRFGTS0ufacCAXD2Qg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1311 bytes --]

there's also magic/save (save.c). put something like this inside <body> tag.

<form action="http://www.example.com/magic/save/foo"
enctype="multipart/form-data" method="post">
<p>
Type some text (if you like):<br>
<input type="text" name="textline" size="30">
</p>
<p>
Please specify a file, or a set of files:<br>
<input type="file" name="datafile" size="40">
</p>
<div>
<input type="submit" value="Send">
</div>
</form>


On Thu, Jan 22, 2015 at 9:45 AM, Skip Tavakkolian <
skip.tavakkolian@gmail.com> wrote:

> there's also /sys/src/cmd/ip/httpd/wikipost.c
>
> are you looking for the html page?
>
> On Thu, Jan 22, 2015 at 9:37 AM, Skip Tavakkolian <
> skip.tavakkolian@gmail.com> wrote:
>
>> take a look at pegasus and if you're using plan9/386 doing it with a
>> little Go app is very easy.
>>
>> On Thu, Jan 22, 2015 at 9:31 AM, Steve Simon <steve@quintile.net> wrote:
>>
>>> anyone have an example of doing a simple web page with a POST form,
>>> I want somthing like the wiki, but just a single page of text
>>> that can be edited in a form using a POST method.
>>>
>>> on plan9 of course.
>>>
>>> I know I am being lazy and I just need to RTFM but if somone has a
>>> recipie
>>> already done that works...
>>>
>>> Thanks,
>>>
>>> -Steve
>>>
>>>
>>
>

[-- Attachment #2: Type: text/html, Size: 3283 bytes --]

  reply	other threads:[~2015-01-22 17:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-22 17:31 Steve Simon
2015-01-22 17:37 ` Skip Tavakkolian
2015-01-22 17:45   ` Skip Tavakkolian
2015-01-22 17:53     ` Skip Tavakkolian [this message]
2015-01-23 11:20       ` Steve Simon
2015-01-23  2:20 ` Matthew Bonner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJSxfmJSwxD=MWC1ZXr9GamSnfpgfN_QoEHbSMJiy8k5TGDGCA@mail.gmail.com' \
    --to=skip.tavakkolian@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).