** connect.php
<?php
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = 'password';
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');
$dbname = 'ragnarok';
mysql_select_db($dbname);
?>
<php
** register.php
require 'connect.php';
echo "<html>
<head>
<title>Registracion</title>
</head>
<body>
<form action="register.php">
<input type="text" name="usuario">Nombre de usuario
<br>
<input type="password" name="password">ContraseƱa
<br>
<input type="text" name="email">Tu Email
<br>
<input type="submit" name="Registrar">";
?>
Well.....here's the problem.....i don't know how to include PHP in the same file to do form action self....or some like that......sorry, i'm really newbie in php.....but i want to learn...
I need to know how to Send a email from PHP in Windows, i've downloaded MailServer Pro....
You know, SMTP connect, and that things....then Send the email with headers in html......
The email should be basically, just to learn how to, and then i can modify some things...
Well......i made a connection to MySQL bucause i need to store a key in the database, then you should confirm it with the link arrived to your email...
And else, i need to know how to programe a CRON JOB, that 7 days past since the email sent and no confirmation did, delete the account.......
If the account is confirmed, then create it......
well.....sorry for ask it but i really don't know....thanks a lot....