<<<<Restricted Area>>>>" . "
Sorry, you must Log In to view this Page

"); exit(); } $usrn = $_GET['usrn']; if($usrn == ""){ $usrn = $_POST['usrn']; } if($usrn == ""){ echo("

<<<<Restricted Area>>>>" . "
Problem with your username. Please Log In again.

"); exit(); } $first_Name = $_POST['first_Name']; $Name = $_POST['Name']; $Title = $_POST['Title']; $Company = $_POST['Company']; $biztype = $_POST['biztype']; $Phone = $_POST['Phone']; $Address = $_POST['Address']; $FAX = $_POST['FAX']; $City = $_POST['City']; $email = $_POST['email']; $mkt = $_POST['mkt']; $State = $_POST['State']; $ZipCode = $_POST['ZipCode']; $alt_con = $_POST['alt_con']; $alt_title = $_POST['alt_title']; $alt_email = $_POST['alt_email']; $act_month = $_POST['act_month']; $act_day = $_POST['act_day']; $act_year = $_POST['act_year']; $contact_type = $_POST['contact_type']; $act_respond = $_POST['act_respond']; $react_month = $_POST['react_month']; $react_day = $_POST['react_day']; $react_year = $_POST['react_year']; $Notes = $_POST['Notes']; $dtnum = $_POST['dtnum']; $dtup = $_POST['dtup']; $repusrn = $_POST['repusrn']; $pswcon = $_POST['pswcon']; $usremail = $_POST['usremail']; $repname1 = $_POST['repname1']; $repname2 = $_POST['repname2']; $today = date("F j, Y"); ?>
Your Page Eco-$mart, Inc.  On-line Administration
New Contact for   ~ ~
Successful Addition to Contact Data Base

"); $GID = mysql_insert_id(); if($act_month !=""){ $ok2 = @mysql_query("INSERT INTO con_activity SET CID='$GID',act_year='$act_year',act_month='$act_month',act_day='$act_day',contact_type='$contact_type',act_respond='$act_respond',dtnum='$dtnum'"); if ($ok2) {echo("

Successful Addition to Activity Report

"); }else{die ("

Error Adding to Activity Report!
". 'Error:' . mysql_error() . '

'); } } if($react_month !=""){ $ok2b = @mysql_query("INSERT INTO con_reactivity SET CID='$GID',react_year='$react_year',react_month='$react_month',react_day='$react_day',dtnum='$dtnum'"); if ($ok2b) {echo("

Successful Re-contact Set

"); }else{die ("

Error Adding to Re-contact Report!
". 'Error:' . mysql_error() . '

'); } } if($Notes !=""){ $ok3 = @mysql_query("INSERT INTO con_notes SET CID='$GID',Notes='$Notes',dtnum='$dtnum'"); if ($ok3) {echo("

Successful Addition to this Contact's Notes

"); }else{die ("

Error Adding Contact's Notes!
". 'Error:' . mysql_error() . '

'); } } $recipient = "info@ecosmartinc.com"; $subject = "New Contact Added to Eco-\$mart Contacts"; $message = "BY: $repusrn" . "\n" . "FOR: $usrn" . "\n" . "EMAIL: $usremail" . "\n" . "\n" . "New Contact:" . "\n" . " $first_Name $Name" . "\n" . "$City, $State $ZipCode" . "\n" . "$email" . "\n" . "\n" . "View or Edit this Contact in Eco-\$mart Contacts On-line:" . "\n" . "Go to http://www.ecosmartinc.com/ecos/ecologin.htm" . "\n"; if(@mail($recipient, $subject, $message)){ echo("

Administration Notification Sent

"); }else{ echo ("

Error Sending Notice of New Contact!
". 'Error:' . error() . '

'); } }else{die ("

Error Adding Contact to Data Base!
". 'Error:' . mysql_error() . '

'); } ?>
Eco-$mart Contact Options
» Register Contact with Manufacturer « 
» Register Contact as an Eco-$mart Dealer « 
» New Project for this Contact « 
 Your Contacts   Regional Contacts  Get Regional CSV  Return to Your Page 
Eco-$mart Products
©2007 - Data Base Interface - Custom Built at:  kwgrubbs.com