De bedoeling is dus dat ik wil dat gebruikers hier 2 maal een hun wachtwoord moeten invoeren, en dat gecontroleerd wordt of allebei de velden identiek zijn.
Dit is de hele script:
<?php
include("include/connection.php");
include("include/session.php");
$name = $_SESSION['username'];
$pass = $_POST['wachtwoord'];
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://
www.w3.org/TR/html4/loose.dtd">
<html style="height:100%;">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="Style Scripts/Main.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {font-size: 10px}
body {
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
</head>
<body style="height: 100%; overflow:hidden;" scroll="no" class="Maintext">
<table width="100%" height="100%" border="0" cellspacing="0" class="Maintext">
<tr>
<td width="4%" rowspan="3" valign="top"><img src="Icons/1-113.jpg" width="32" height="32"></td>
<td width="62%" height="2%" valign="top" style="background-repeat:repeat-y; background-position: center; font-weight: bold; color: #FF9900;"class="Maintext">Wachtwoord wijzigen </td>
<td width="4%" height="5"> </td>
<td width="30%" height="5"> </td>
</tr>
<tr valign="top">
<td width="62%" height="1%" background="/Images/horizontalSeparator.gif" style="background-repeat:repeat-x"> </td>
<td width="3%" height="1" class="Maintext"> </td>
<td width="30%" height="1"> </td>
</tr>
<tr class="Maintext">
<td width="62%" height="75%" rowspan="8" valign="top"><div align="left">
<p>Voer hieronder je nieuwe login wachtwoord in.</p>
<FORM ACTION="changepass.php" METHOD="post" NAME="form3" target="_self">
<table width="100%" border="0" class="Maintext">
<tr>
<td width="33%"><p>Nieuw login wachtwoord:</p>
<p>Nogmaals login wachtwoord:</p></td>
<td width="67%"><p>
<INPUT TYPE="password" NAME="wachtwoord" MAXLENGTH="40">
</p>
<p>
<INPUT TYPE="password" NAME="wachtwoord2" MAXLENGTH="40">
</p></td>
</tr>
</table>
</form>
<p><a href="profiel.php">
<input name="submit" type="submit" value="Wijzig">
</a></p>
<p><a href="profiel.php">Terug</a> naar gebruikersprofiel.</p>
</div></td>
<td width="3%" height="5%" valign="middle" class="Maintext"> </td>
<td width="30%" height="5%" class="Maintext"> </td>
</tr>
<tr>
<td width="4%" rowspan="7"> </td>
<th width="3%" height="5%" valign="middle" class="Maintext"> </th>
<td width="30%" height="5%" valign="middle" nowrap class="Maintext"> </td>
</tr>
<tr>
<th width="3%" height="5%" valign="middle" class="Maintext"> </th>
<td width="30%" height="5%" valign="middle" nowrap class="Maintext"> </td>
</tr>
<tr>
<th width="3%" height="5%" valign="middle" class="Maintext"> </th>
<td width="30%" height="5%" valign="middle" class="Maintext"> </td>
</tr>
<tr>
<th width="3%" height="5%" valign="middle" class="Maintext"> </th>
<td width="30%" height="5%" valign="middle" nowrap class="Maintext"> </td>
</tr>
<tr>
<th width="3%" height="5%" valign="middle" class="Maintext"> </th>
<td width="30%" height="5%" valign="middle" nowrap class="Maintext"> </td>
</tr>
<tr>
<th height="5%" valign="middle" class="Maintext"><span class="norepeat"></span></th>
<td width="30%" height="5%" valign="middle" nowrap class="Maintext"> </td>
</tr>
<tr>
<td width="4%" height="40%"> </td>
<td width="30%" height="40%"> </td>
</tr>
<tr>
<td width="4%" height="2%"> </td>
<td width="62%" height="2%" background="/Images/horizontalSeparator.gif" style="background-repeat:repeat-x"> </td>
<td width="4%" height="2%"> </td>
<td width="30%" height="2%"> </td>
</tr>
<tr valign="middle">
<td width="4%" height="2%"> </td>
<td width="62%" height="5%" valign="top" class="Maintext"><div align="center" class="style1">- Copyright 2004 -</div></td>
<td width="4%" height="2%"> </td>
<td width="30%" height="2%"> </td>
</tr>
</table>
</body>
</html>