fix
By: Niels- | Date: Mar 11 2007 16:50 | Format: PHP | Expires: never | Size: 1.19 KB | Hits: 1487
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <title>Untitled Document</title>
- </head>
- <body>
- <form method="post"><br />
- <input type="text" name="name" value="" /><br />
- <input type="password" name="password1" value="" /><br />
- <input type="password" name="password2" value="" /><br />
- <input type="submit" name="sumbit" value="Sign Up" /><br />
- </form>
- <?php
- if ($_POST['name'] == "") {
- $error = 'niet alle velden zijn ingevuld'; }
- if ($_POST['password1'] == "") {
- $error .= 'niet alle velden zijn ingevuld'; }
- if ($_POST['password1'] != $_POST['password2']) {
- $error .= 'de passworden komen niet overheen'; }
- echo "Beste ".$_POST['name'].", u heeft alles correct ingevuld<br />";
- } else { echo "Gelieve alle formuliervelden netjes in te vullen !<BR /><BR />";
- echo "<FONT COLOR="#FF0000">".$error."</FONT>";
- }
- } else {
- echo "U moet eerst het formulier invullen !";
- }
- ?>
- </body>
- </html>
Latest pastes
1 hours ago
11 hours ago
1 days ago
2 days ago
2 days ago