<HTML>
<!-- This is an example of how to make a form with PHP3.  This form
collects data from the user and sends it to a php script. -->

<!-- The form does not need to contain any php code.  I use a small 
ammount of php to preload a field on the form.  If you include php code
in a file, be sure to end it with a .php3 extension. -->

<HEAD>
<TITLE>Account Signup Example</TITLE>
</HEAD>

<BODY BgColor="#FFCCAA" Text="#000000">

<H1>Account Signup Example</H1>

<P>The following information is necessary to create your new account.

<P>Please enter the data and click on submit at the bottom of the page.

<!--------------------------------------------------->
<!-- The Action of the form is to call the account-submit.php3 script. -->
<!-- The account-submit.php3 program is what acts upon the data.     -->
<!--------------------------------------------------->

<FORM Action=account-submit.php3 Method=POST>

Firstname:
<!-- These "name=" parameters tell php what to name the variable in the next script. -->
<INPUT Name=Firstname><BR>

Lastname: 
<INPUT Name=Lastname><BR>

Email Address: 
<INPUT Name=email>

<HR>

<I>Your new username should be between 3 and 8 characters.</I>

<P>
Username request: 
<INPUT Name=username><BR>
Password request: 
<INPUT Name=password><P>

<HR>

<I>I will guess the IP address of your computer. <P>Please change it if you
will be using this account from a different computer.</I>

<P>
Hostname or IP address of your computer: 
<INPUT Name=IP Value=<?php echo getenv("REMOTE_ADDR"); ?>>

<HR>

<INPUT Type=submit Value=Submit>
</FORM>

</BODY>
</HTML>

<!-- That is all.  The account-submit.php3 file manipulates the data -->