<!--
 -  
 -  This file is part of the OpenLink Software Virtuoso Open-Source (VOS)
 -  project.
 -  
 -  Copyright (C) 1998-2018 OpenLink Software
 -  
 -  This project is free software; you can redistribute it and/or modify it
 -  under the terms of the GNU General Public License as published by the
 -  Free Software Foundation; only version 2 of the License, dated June 1991.
 -  
 -  This program is distributed in the hope that it will be useful, but
 -  WITHOUT ANY WARRANTY; without even the implied warranty of
 -  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 -  General Public License for more details.
 -  
 -  You should have received a copy of the GNU General Public License along
 -  with this program; if not, write to the Free Software Foundation, Inc.,
 -  51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 -  
 -  
-->
<?xml version="1.0" encoding="ISO-8859-1"?>
<refentry id="VS-B-7">
  <refmeta>
    <refentrytitle>Exercises</refentrytitle>
    <refmiscinfo>tutorial</refmiscinfo>
  </refmeta>
  <refnamediv>
    <refname>User Records</refname>
    <refpurpose>VSP exercise to create user records</refpurpose>
  </refnamediv>

<refsect1 id="VS-B-7a">
<title>User record Example</title>
<para>The object of the exercise is to handle form data, and data held in a table.
This is achieved with 4 separate stages. Each stage has a separate file.</para>
<orderedlist>
  <listitem>Create a user table with a login name, password, real name and address. The login name is the primary key. This table can be made with a SQL file.</listitem>
  <listitem>Write an application which gets data from a form and inserts it into a table.</listitem>
  <listitem>Write a form to prompt for login details and pass to the query page.</listitem>
  <listitem>Write a form for querying the table based on the login name. The login name in the query form will be a SQL LIKE string.</listitem>
</orderedlist>
<para>This example would be used in web sites that have some form of membership to gain access
to information.</para>
</refsect1>
</refentry>