9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] werc simple form
@ 2022-02-24  7:19 thinktankworkspaces
  2022-02-24  7:53 ` Kurt H Maier
  0 siblings, 1 reply; 2+ messages in thread
From: thinktankworkspaces @ 2022-02-24  7:19 UTC (permalink / raw)
  To: 9front

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">


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-24  7:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-24  7:19 [9front] werc simple form thinktankworkspaces
2022-02-24  7:53 ` Kurt H Maier

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).