9front - general discussion about 9front
 help / color / mirror / Atom feed
From: thinktankworkspaces@gmail.com
To: 9front@9front.org
Subject: [9front] werc simple form
Date: Wed, 23 Feb 2022 23:19:07 -0800	[thread overview]
Message-ID: <D97855E17F216D4CFFB5B829E66E70A2@gmail.com> (raw)

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?


# reg.tpl
<h1>Registration Page</h1>
<br />
<p>

Well this is strange:<b>%($"reg_user_name%)
<br>Weird:%($"reg_full_name%)
% my_date=`{date}
% echo $my_date >> ./registration.txt
% echo $reg_user_name >> ./registration.txt
% echo $reg_full_name >> ./registration.txt
% echo $reg_email >> ./registration.txt
% echo $reg_password >> ./registration.txt
<p>
<form method="POST" action="" style="text-align: right; float: left;">
<fieldset>
    <label>User name: <input type="text" name="reg_user_name"></label><br>
	<label>Full name: <input type="text" name="reg_full_name"></label><br>
	<label>Email: <input type="text" name="reg_email"></label><br>
    <label>User password: <input type="password" name="reg_password"></label><br>
    <input name="f" type="submit" value="Register">
</fieldset>
</form>


<br style="clear:left">


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

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

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=D97855E17F216D4CFFB5B829E66E70A2@gmail.com \
    --to=thinktankworkspaces@gmail.com \
    --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).