<<<<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(); } $datus = date(m-d-Y); $ID = $_POST['ID']; $first_Name = $_POST['first_Name']; $Name = $_POST['Name']; $Company = $_POST['Company']; $Phone = $_POST['Phone']; $Address = $_POST['Address']; $City = $_POST['City']; $email = $_POST['email']; $State = $_POST['State']; $ZipCode = $_POST['ZipCode']; $usremail = $_POST['usremail']; $check2 = $_POST[check2]; $dbcnx = @mysql_connect('mysql.plainhost.com', 'ecosmar_ecosmart', 'ecoman1'); ?>
Close this Window

Eco-$mart Contacts
Add Contact to Dealers List

 Contact Added?  

Error Selecting Products from Data Base!
". 'Error:' . mysql_error() . '

'); }else{ $row = mysql_fetch_array($listem); $proname = $row['proname']; } $ok4 = @mysql_query("INSERT INTO dealers SET proname='$proname',name='$Company',address='$Address',city='$City',state='$State',zip='$ZipCode',phone='$Phone',email='$email'"); if (!$ok4) { echo("

Could not update $value Dealers List
Error: " . mysql_error(). "

"); }else{ $recipient = "info@ecosmartinc.com"; $reply = "From: ".$usremail."\r\nReply-to: ".$usremail; $subject = "Eco-\$mart Contact Added to Dealers List"; $message="A Contact has been added to the $value Dealers List" . "\n" . "REPRESENTATIVE: $usrn" . "\n" . "DATE: $datus" . "\n" . "\n" . "CONTACT DETAILS:" . "\n" . "$aname" . "\n" . "$Company" . "\n" . "$Phone" . "\n" . "$Address" . "\n" . "$City, $State $ZipCode" . "\n" . "\n" . "View or Edit this Dealer by going to:" . "\n". "http://www.ecosmartinc.com/ecos/ecologin.htm" . "\n". "Click on Eco-$mart Products, then View/Edit Dealers List" . "\n". "Thank You," . "\n" . "Ecosmartinc.com Notifications" . "\n"; if(@mail($recipient, $subject, $message, $reply)){ echo("

Successful Addition to $value Dealers List.

"); }else{ echo ("

Error Adding Contact to $value Dealers List!
". 'Error:' . error() . '

'); } } $i = $i+1; } ?>
Eco-$mart Contact Options
» Register Contact with Manufacturer « 
» Register Contact as an Eco-$mart Dealer « 
» Start a New Project for this Contact « 
 Your Contacts   New Contact  Search Your Contacts
Get CSV Help  Return to Your Page 
Eco-$mart Products
©2006 - Data Base Interface - Custom Built at:  kwgrubbs.com