Location: PHPKode > projects > Tagging manager > version 1.02/register.php
<?php
/**
 * quickform to register a user (no actual validation in v1.0 .. will be after summer)
 *
 *
 * @author hide@address.com
 * @version 1.0
 * @package TaggingManager
 */
  $root_path = './';
  
  include_once($root_path.'config.php');
	  
  require_once($root_path.'includes/dbconn.php');
  require_once($root_path.'includes/functions.php');
  require_once($root_path.'includes/template.php');
  require_once($root_path.'includes/metadata.php');
  require_once($root_path.'includes/user.php');
    

$myUser = new User;
	
	 if (array_key_exists('_submit_check', $_POST)) {
	$myUser->userName = $_POST[username];
	$myUser->userEmail = $_POST[email];
	$myUser->userPassword = md5($_POST[password]);
	$myUser->setuser();
	header("location:$location");
	}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
<TITLE>Registerbox</TITLE>
<meta name="Author" content="FGov">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Copyright" content="Deze pagina en zijn style sheet vallen onder de Creative Commons License">
<link href="template/default/styles/master.css" rel="stylesheet" type="text/css">
</head>

<body>
<br>

<div id="container">

<!-- START top corners -->
<div><b class="spiffy"><b class="spiffy2"></b><b class="spiffy3"></b><b class="spiffy4"></b><b class="spiffy5"></b></b></div>
<div class="spiffy_content">
<!-- END top corners -->
Register for the taggingmanager:
<hr size="1" noshade>
<form name="metadata" method="post" action="register.php">
<input type="hidden" name="_submit_check" value="1">
  <table width="100%"  border="0" cellspacing="0" cellpadding="2">
    <tr>
      <td width="22%">User</td>
      <td width="78%"><input type="text" name="username" id="username"></td>
    </tr>
    <tr>
      <td>Password</td>
      <td><input type="password" name="password" id="password">
        </td>
    </tr>
     <tr>
      <td>E-mail</td>
      <td><input type="text" name="email" id="email">
       </td>
    </tr>
    
  </table>
  <p>
    <input type="submit" name="Submit" value="Register"> 
    </p>
  </form><br>

<!-- START bottom corners -->	
  </div>
    <div ><b class="spiffy"><b class="spiffy5"></b><b class="spiffy4"></b><b class="spiffy3"></b><b class="spiffy2"></b><b class="spiffy1"></b></b> </div>
<!-- END bottom corners -->



</div>
</body>
</html>
Return current item: Tagging manager