username = $_POST['username']; $new_user->password = $_POST['password']; $new_user->email = $_POST['email']; if ($_POST['realname']) { $new_user->realname = $_POST['realname']; } if ($_POST['scaname']) { $new_user->scaname = $_POST['scaname']; } if ($_POST['web_url'] != "http://") { $new_user->web_url = $_POST['web_url']; } $new_user->web_name = $_POST['web_name']; if ($_POST['cat_prefs']) { $new_user->cat_prefs = $_POST['cat_prefs']; } if ($_POST['century_prefs']) { $new_user->century_prefs = $_POST['century_prefs']; } if (isset($_POST['email_ok'])) { $new_user->email_ok = 1; } if (isset($_POST['comments'])) { $new_user->comments = 1; } if (isset($_POST['notify_comments'])) { $new_user->notify_comments = 1; } if (isset($_POST['notify_replies'])) { $new_user->notify_replies = 1; } $pass_conf = $_POST['pass_conf']; $email_conf = $_POST['email_conf']; if ($new_user->password != $pass_conf) { echo '

Password mismatch! Please try again.

'; } else if ($new_user->email != $email_conf) { echo '

Email mismatch! Please try again.

'; } else if ($new_user->email == "" || $new_user->password == "") { echo '

All fields in red are required. Please try again.

'; } else if (count($new_user->cat_prefs) == 0 || count($new_user->century_prefs) == 0) { echo '

Please choose at least one Specialty and Century.

'; } else { $success = $new_user->validateNew(); } if ($success) { ?>

Registration successful!

sendConfEmail()) { echo '

There was a problem sending your confirmation email. Please contact the webmaster for assistance.

'; } else { echo '

A confirmation email has been sent to the address provided. It contains instructions for activating your account.

'; } } } if (!$success) { ?>

Register A New User

Username:

 

Password:

 

Confirm Password:

 

Real Name:

 

Other Name:

 

SCA persona or other name you go by

Email:

 

Confirm Email:

 

email_ok) echo " checked"; ?>>Allow other users to email me

(email addresses are always hidden)

Website:

 

URL

 

website name (optional)

comments) echo " checked"; ?>>Allow comments on my projects by default

notify_comments) echo " checked"; ?>>Notify me of comments on my projects

notify_replies) echo " checked"; ?>>Notify me of replies to my comments

Interests:

'; echo ' cat_prefs) { if (in_array($cat->id, $new_user->cat_prefs)) { echo " checked"; } } echo '>' . $cat->name . "
\n"; } ?>