Difference between revisions of "Recital Web Tutorial"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
Line 61: | Line 61: | ||
<code lang="html"> | <code lang="html"> | ||
<% | <% | ||
+ | _post.start_date = ctod(_post.start_date) | ||
open database southwind | open database southwind | ||
− | + | insert into example from name _post | |
− | + | ||
− | + | ||
? "Data updated" | ? "Data updated" | ||
− | close | + | close databases |
%> | %> | ||
<body bgcolor="#FFFFFF" text="#000000"> | <body bgcolor="#FFFFFF" text="#000000"> | ||
</body> | </body> | ||
</code> | </code> |
Revision as of 12:50, 11 March 2010
Simple POST Form
Create an input form in your preferred HTML editor, set the form method to post and the form action to an rsp file:
<html> <body bgcolor="#FFFFFF" text="#000000"> <form name="form1" method="post" action="handle_it.rsp"> <p> Account_no: <input type="text" name="account_no"> <br> Title: <input type="text" name="title"> <br> Last_name: <input type="text" name="last_name"> <br> First_name: <input type="text" name="first_name"> <br> Initial: <input type="text" name="initial"> <br> Street: <input type="text" name="street"> <br> City: <input type="text" name="city"> <br> State: <input type="text" name="state"> <br> Zip: <input type="text" name="zip"> <br> Limit: <input type="text" name="limit"> <br> Balance: <input type="text" name="balance"> <br> Available: <input type="text" name="available"> <br> Notes: <input type="text" name="notes"> <br> Start_date: <input type="text" name="start_date"> </p> <p> <input type="submit" name="Submit" value="Submit"> </p> </form> </body> </html>
Create the form handler rsp file. This is coded in Recital and the form data can be accessed from the _post[] dynamic array. Any ? display commands will be sent to the browser client.