Hi.
I am currently trying to make a registration system for my project, http://zkole.com.
I'm making a system where the user types in desired username and password along with his email.
What I want to do, is check the strings $username and $email to my MySQL database, and check if they already exist. If they do not exist, registration may continue. I might wanna throw in some email check as well.
How do I do this, and write them to the database, and send them an email containing their username and password?
Regards,
Stig Eidissen.
The main code looks like this atm:
<?php
if ($submit) {
if (!$username || !$password || !$email) {
$error = '<p class=text>Du kan i det minste fylle ut alle feltene</p>';
} else {
echo "<p class=text>Takker så meget. En epost har blitt sendt til din adresse som forteller deg hvordan du tar i bruk din nye Zkole.com-konto</p>";
}
}
if (!$submit || $error) {
echo $error;