<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<?php
if ($_SERVER['REQUEST_METHOD'] == "POST" ) {
if ($_POST["username"] =="") {
$error = "U hebt het veld username niet ingevuld.";
}
elseif ($_POST["password"] == ""){
$error = "U hebt het veld password niet ingevuld.";
}
elseif ($_POST["email"] == "") {
$error = "U hebt het veld emailadres niet ingevuld.";
}
else {
$message = "";
$username = $_POST["username"];
$password = $_POST["password"];
$email = $_POST["email"];
$description = $_POST["description"];
$host = "host"; // mijn host
$username = "iemand"; // mijn username
$password = "*****"; // mijn password
$database = "db"; // Database naam
$message = "Check availablity";
$sql = mysql_query ('SELECT * FROM `leden` WHERE `username` = \ '.$username.''); }
}
?>
<span class="smallgraytext">
<form name="form1" method="post" action="http://www.basdekwant.nl/register.php">
<table width="100%" border="0">
<tr>
<td><span class="smallgraytext">
<?php echo $message; ?></span></td>
<td><img src="images/loading.gif" /></td>
</tr>
<tr>
<td width="22%">Username:</td>
<td width="78%"><input type="text" name="username">
<b class="smallredtext">*</b></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="text" name="password">
<b class="smallredtext">*</b></td>
</tr>
<tr>
<td>Emailadres:</td>
<td><input type="text" name="email">
<b class="smallredtext">*</b></td>
</tr>
<tr>
<td>Een korte beschrijving van uzelf:<br>
<br>
<br>
<br></td>
<td><textarea name="description" cols="45" rows="5"></textarea></td>
</tr>
<tr>
<td class="smallredtext">* = verplicht in te vullen veld</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="Submit"></td>
</tr>
</table>
<font color="#00ff00"><b>
<?php echo $error; ?></b></font>
</form>
</span>
</body>
</html>