From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 21631 invoked from network); 24 Feb 2022 07:57:53 -0000 Received: from 4ess.inri.net (216.126.196.42) by inbox.vuxu.org with ESMTPUTF8; 24 Feb 2022 07:57:53 -0000 Received: from wopr.sciops.net ([216.126.196.60]) by 4ess; Thu Feb 24 02:53:05 -0500 2022 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sciops.net; s=20210706; t=1645689181; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=j9crheKFlDd8efH7twd/k65Pml9/tTgyvm38xIEZ0y0=; b=aHV70ZTwBTpNk9U5mc6aDkbtJkTETAotn5T9IIm9ik0B18oeEAQmU8BEtRm8FMR8W6hDRN oOUUUIS/hcbG9UgDA0I3yDnBw/XXZf0cJyehAjfDwwTr6um2WHXsLHd5EioXGqRPC9dhrX U0znR9evMW9Y5UnDNN520uXGL/9qFmg= Received: from localhost (wopr.sciops.net [local]) by wopr.sciops.net (OpenSMTPD) with ESMTPA id 5ab2a04a for <9front@9front.org>; Wed, 23 Feb 2022 23:53:01 -0800 (PST) Date: Wed, 23 Feb 2022 23:53:01 -0800 From: Kurt H Maier To: 9front@9front.org Message-ID: Mail-Followup-To: 9front@9front.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: overflow-preventing proven shader realtime frontend Subject: Re: [9front] werc simple form Reply-To: 9front@9front.org Precedence: bulk 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