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?

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");
?>
Coming and going...
Highers are getting the better of me
If you got moniez go to dentafrice.
CPU i5 3570 @ 4.2 GHz | Mobo GigaByte Z77D3H | RAM 8GB | GPU AMD Radeon 6870 | OS Win 8 64-bit | HD 1TB HD and 128GB SSD | Wheel Logitech G27
I could create a PHP (IMAP) E-Mail system that works with the cPanel webmail.
How is that difficult?
Want to hide these adverts? Register an account for free!