Hey guys,
I've decided to study PHP. I am new to programming and new to PHP. In fact i havent created a program using PHP. I have a code from a book... I dont know if theres an error with these or I have to install or configure something to make it work. Please help me..... (heres the code)
<html>
<head><title>Register</title></head>
<body>
<?php
if (!isset ($POST['register']) ||($POST['register'] !='Register')) {
?>
<h1>Registration</h1>
<form method="get" action="register.php">
<table>
<tr><td>E-mail address:</td>
<td>
<input type='text' name='email'/>
</td></tr>
<tr><td>First name:</td>
<td><input type='text' name='first_name'/></td></tr>
<tr><td>Last name:</td>
<td><input type='text' name='last_name'/></td></tr>
<tr><td>Password:</td>
<td>
<input type='password' name='password'/>
</td></tr>
<tr>
<td colspan='2'>
<input type='submit' name='register' value='Register'/>
</td>
</tr>
</table>
</form>
<?php
} else {
?>
E-mail: <?php echo $POST['email']; ?><br />
Name: <?php echo $POST['first_name']. ' '. $POST['last_name'];
?><br />
Password: <?php echo $POST['password']; ?><br />
<?php
}
?>
</body>
</html>
.......... pls help me guys...... i really want to learn these language..