PHP Classes

File: register.php

Recommend this page to a friend!
  Classes of Alf-Red   Registration   register.php   Download  
File: register.php
Role: Example script
Content type: text/plain
Description: the formular page
Class: Registration
User registration with CAPTCHA image validation
Author: By
Last change:
Date: 19 years ago
Size: 1,430 bytes
 

Contents

Class file image Download
<?php
/* the formular page */
?>
<html>
<head>
<title>Validator Example</title>
</head>
<body>
<body onload="document.forms[0].code.focus();">
<div align='center'><br><br><br>
Give me your username,<br> your password and a valide e-mail address<br><br>
<form action='register_send.php' method='POST'>
<?php
/* write in red if the user must change the username chosen */
if($_GET['user'] == 'user')
    {
        print(
"<font color='red'>") ;
        print(
"Username<br><input type='text' name='text1'><br>") ;
        print(
"</font>") ;
    }
else
    {
        print(
"Username<br><input type='text' name='text1'><br>") ;
    }
?>

Password<br><input type='password' name='text2'><br>
E-mail<br><input type='text' name='text3'><br><br>
<img src="img.php?words=true" border=0><br>
<?php
/* write in red if the word written is wrong */
if($_GET['user'] == 'word')
    {
        print(
"<font color='red'>") ;
        print(
"<br>Recopy the word as exact as shown <br>in the image above (case sensitive!!!!)<br>") ;
        print(
"<br><input type='text' name='text4'><br><br>") ;
        print(
"</font>") ;
    }
else
    {
        print(
"<br>Recopy the word as exact as shown <br>in the image above (case sensitive!!!!)<br>") ;
        print(
"<br><input type='text' name='text4'><br><br>") ;
    }
?>
<input type='submit' name='submit' value='Submit'><br>
</form>
</div>
</body>
</html>