Loading...
SelectRow('Profiles', array('Email' => $email)); if ($info !== false) { echo 'Email already registered'; } else { $Password = mt_rand(100, 999) . mt_rand(100, 999); $LoginKey = mt_rand(1000, 9999) . mt_rand(1000, 9999) . mt_rand(1000, 9999) . mt_rand(1000, 9999) . mt_rand(1000, 9999); $ProfileID = $db->InsertRow('Profiles', array('Name' => $name, 'Email' => $email, 'Password' => $Password, 'LoginKey' => $LoginKey)); $mail = MailSetup(); $mail->AddAddress($email); $mail->From = $Profile_Email_From; $mail->FromName = "ProFile Sports"; $mail->Subject = "ProFile Sports Registration - Please confirm your email."; $mail->Body = "This from the ProFileSportsLLC.com Registration Form.

Your Name: $name
Your Email: $email

Please confirm your email address by clicking on the link below:

http://{$host}/confirm/?{$ProfileID}-{$Password}

"; $mail->IsHTML(1); if (!$mail->Send()) { echo "There has been a mail error: " . $mail->ErrorInfo; } else { echo "success"; } } } ?>