9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Kurt H Maier <khm@sciops.net>
To: 9front@9front.org
Subject: Re: [9front] werc simple form
Date: Wed, 23 Feb 2022 23:53:01 -0800	[thread overview]
Message-ID: <Yhc5XRL7OBp+dRCo@wopr> (raw)
In-Reply-To: <D97855E17F216D4CFFB5B829E66E70A2@gmail.com>

On Wed, Feb 23, 2022 at 11:19:07PM -0800, thinktankworkspaces@gmail.com wrote:
> I was trying to do a simple form like a registration.
> 
> I stuck it in /werc/sites/thinktankworkspaces/_reg/reg.tpl
> 
> It writes date to the file and nothing else. I could change the name to user_name and user_password and it will capture those results but nothing else. 
> 
> I suspect I need to put these variables somewhere. I tried _werc/config and it comes back blank.
> 
> So whats the best way to add a new form?

werc unpacks post arguments into variables named post_arg_whatever.
you're looking for e.g. $post_arg_reg_full_name here.  Look at the paste
app for inspiration; it spits out a form if the request is a GET and
checks to see if it needs to save something if the request is a POST.

khm

      reply	other threads:[~2022-02-24  7:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-24  7:19 thinktankworkspaces
2022-02-24  7:53 ` Kurt H Maier [this message]

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=Yhc5XRL7OBp+dRCo@wopr \
    --to=khm@sciops.net \
    --cc=9front@9front.org \
    /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).