You need to set up the prices first!"; exit(); } $sprices = ""; if(isset($_POST[s1])) { $PriceInfo = explode("|", $_POST[price]); $ExpDate = mktime(0,0,0,date(m) + $PriceInfo[0],date(d), date(Y)); $NewLogo = $_FILES[LogoImage][name]; if(!empty($NewLogo)) { $NewLogoName = $t."_".$NewLogo; copy($_FILES[LogoImage][tmp_name], "../yellow_images/".$NewLogoName); } if(!empty($_FILES[rim])) { while(list($key,$value) = each($_FILES[rim][name])) { if(!empty($value)) { $NewImageName = $t."_".$value; copy($_FILES[rim][tmp_name][$key], "../yellow_images/".$NewImageName); $MyImages[] = $NewImageName; } } if(!empty($MyImages)) { $ImageStr = implode("|", $MyImages); } } if(!empty($_POST[website])) { if(!ereg("^http://", $_POST[website])) { $NewWebsite = ""; } elseif(strlen($_POST[website]) < '11') { $NewWebsite = ""; } else { $NewWebsite = $_POST[website]; } } $q1 = "insert into yellow_agents set username = '$_POST[NewUsername]', password = '$_POST[NewPassword]', FirstName = '$_POST[FirstName]', LastName = '$_POST[LastName]', address = '$_POST[address]', city = '$_POST[city]', state = '$_POST[state]', country = '$_POST[country]', zipcode='$_POST[zip]', phone = '$_POST[Phone]', cellular = '$_POST[cellular]', pager = '$_POST[pager]', email = '$_POST[Email]', RegDate = '$t', ExpDate = '$ExpDate', AccountStatus = 'active', PriorityLevel = '$PriceInfo[1]', news = '$_POST[updates]' "; mysql_query($q1); if(mysql_error()) { $RegisterError = "
The username $_POST[NewUsername] is already in use!
Select another one!
"; } else { $last = mysql_insert_id(); header("location:ViewUser.php?AgentID=$last"); exit(); } } include_once("LeftStyles.php"); ?>
 
CLASSIFIEDS v2.0
 
 ADD USER
Username:
Password:
Confirm Password:
First name:
Last name:
Address:
City:
State:
Zip:
Country:
Email address:
Phone:
Cellular:
Pager:
Newsletter:
Price: