From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 22 Jan 2015 09:53:14 -0800 Message-ID: From: Skip Tavakkolian To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=001a113a6f40a3db5e050d41589b Subject: Re: [9fans] simple cgi and POST for plan9? Topicbox-Message-UUID: 3b2caf2a-ead9-11e9-9d60-3106f5b1d025 --001a113a6f40a3db5e050d41589b Content-Type: text/plain; charset=UTF-8 there's also magic/save (save.c). put something like this inside tag.

Type some text (if you like):

Please specify a file, or a set of files:

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 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 >>> >>> >> > --001a113a6f40a3db5e050d41589b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
there's also magic/save (save.c). put something like t= his inside <body> tag.

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


On Thu, Jan 22, 2015 at 9= :45 AM, Skip Tavakkolian <skip.tavakkolian@gmail.com> wrote:
there's al= so /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 exa= mple 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<= br> already done that works...

Thanks,

-Steve




--001a113a6f40a3db5e050d41589b--