There are "two" different files.
In your HTML file:
<INPUT TYPE="text" SIZE="15" NAME="login">
<INPUT NAME="pass1" TYPE="password" SIZE="15">
<INPUT NAME="pass2" TYPE="password" SIZE="15">
<INPUT NAME="email" TYPE="text" SIZE="35">
<INPUT TYPE="submit" VALUE="Submit">
In your PHP file:
<?php
if(!$login)
{
echo "You did not enter login";
}
elseif(!$pass1)
{
echo "You did not enter password";
}
elseif(!$pass2)
{
echo "You did not confirm your password";
}
elseif($pass1 != $pass2)
{
echo "Your passwords did not match";
}
elseif(!$email)
{
echo "You did not your email address";
}
$password = pass2;
$connection = mysql_pconnect ($DB_SERVER, $DB_LOGIN, $DB_PASSWORD);
$selection = mysql_query("USE $DB_NAME");
$query = "INSERT INTO table_name (login, password, email) VALUES ('$login', '$passoword ', '$email') ";
$result = mysql_query($query);
?>
That's should do it. I assume you have only 3 fields in your table. Please ask if you have any question(s).
Have fun,
Chris