Is there a system where admins can creat a code to give to a member and this codes alows them to make a email so if you dont have the code you cant creat a email?
Printable View
Is there a system where admins can creat a code to give to a member and this codes alows them to make a email so if you dont have the code you cant creat a email?
What dya mean, like when trying to register an email a/c they need to have this code to enter to prove that their allowed it?
Just do something like, create a table called code and use a mysql_num_rows to check whether the code exists..
Then delete the code from the table when the codes been used..
eg
PHP Code:<?php
$code = clean($_POST[code]);
$ck = mysql_num_rows(mysql_query("select * from code"));
if($ck!=0)
{
/*
All your creating email account stuff here...
*/
mysql_query("delete from code where code = '$code'");
}
else
die("Invalid Code");
?>
If you got moniez go to dentafrice.
I could create a PHP (IMAP) E-Mail system that works with the cPanel webmail.
How is that difficult?