" "){ $Address_1 = ereg_replace("'","´",$_REQUEST['Address_1']); $Address_2 = ereg_replace("'","´",$_REQUEST['Address_2']); $SQL = "INSERT INTO contacts ( Type, Emergency, User_ID, First_Name, Last_Name, Email, Phone, Mobile, Work, Address_1, Address_2, City, State_Residence, Zip, Share_Family, Share_Network ) VALUES ( '" . $_REQUEST["Type"] . "' , '" . $_REQUEST["Emergency"] . "' , '" . $_SESSION["sessionUserID"] . "' , '" . $_REQUEST['First_Name'] . "' , '" . $_REQUEST['Last_Name'] . "' , '" . $_REQUEST['Email'] . "' , '" . $_REQUEST['Phone'] . "' , '" . $_REQUEST['Mobile'] . "' , '" . $_REQUEST['Work'] . "' , '$Address_1' , '$Address_2' , '" . $_REQUEST['City'] . "' , '" . $_REQUEST['State_Residence'] . "' , '" . $_REQUEST['Zip'] . "' , '" . $_REQUEST['Share_Family'] . "' , '" . $_REQUEST['Share_Network'] . "' )"; $result = mysql_query($SQL) or die(mysql_error()); $rand_key = md5(time()); $rand_key= rand(0,999999999); $invitDate = date(Y-m-d) ; $InsertStr = "INSERT INTO invitations (Invite_Date,USER_ID, EMAIL, Invited, Type, Random_Key ) VALUES ( '$invitDate','" . $_SESSION['sessionUserID'] . "' , '" . $_REQUEST["FriendsEmail"][$i] . "', 'Y', '" . $_REQUEST["Type"][$i] . "', '$rand_key')"; $result = mysql_query($InsertStr) or die(mysql_error()); $lastInvId=mysql_insert_id() ; //************************************************************************************************************************ //* see if user is already a yada member - if so then dont sent the registration email - just put a message in their box //************************************************************************************************************************ //see if user is on the dont send email list $lookupEmail = $_REQUEST["FriendsEmail"][$i]; include "doNotSend.php"; //end of email lookup - result will be $OkToSendEmail = Y or N $SelectStr2 = "SELECT * FROM users where Email = '" . $_REQUEST["FriendsEmail"][$i] . "'"; $result2 = mysql_query($SelectStr2) or die(mysql_error()); if($myrow2=MySQL_fetch_array($result2)){ $sqlM = "update invitations set is_Member = 'Y' where ID = '$lastInvId' "; $resultM = mysql_query($sqlM) or die(mysql_error()); $dateSent=date("Y-m-d") ; $timeSent = date("H:i") ; $friendID = $myrow2["ID"]; $invID = $lastInvId; $proNoun = "their"; if ( $_SESSION["sessionGender"] == "m" ){ $proNoun = "his"; } if ( $_SESSION["sessionGender"] == "f" ){ $proNoun = "her"; } $sqlInsert = "INSERT INTO messages (From_ID, To_ID, Date_Sent, Time_Sent, Mark_As_Read, The_Text)" ; $sqlInsert = $sqlInsert . " VALUES ('" . $_SESSION["sessionUserID"] . "','$friendID','$dateSent','$timeSent','N','011')" ; $result3 = mysql_query($sqlInsert) or die(mysql_error()); $lastMsgId=mysql_insert_id() ; $msgTitle = "Invitation from ".$_SESSION["sessionFname"] . " " . $_SESSION["sessionLname"] ; $message = $_SESSION["sessionFname"] . " " . $_SESSION["sessionLname"] . " has invited you to join $proNoun network.
Click here to accept or reject this invitation."; $SQL3 = "UPDATE messages SET msg_title='$msgTitle',The_Text = '$message', Reply_ID='$lastMsgId' WHERE To_ID ='$friendID' and ID = '$lastMsgId' and The_Text='011' and From_ID = '" . $_SESSION["sessionUserID"]. "'"; $result3 = mysql_query($SQL3) or die(mysql_error()); } else{ //*********************DID NOT FIND THE FRIEND IN THE USERS TABLE - NOT YET A MEMBER $theGender1 = "they"; $theGender2 = "his or her"; if($_SESSION["sessionGender"] == "f"){ $theGender1 = "she"; $theGender1C = "She"; $theGender2 = "her";} if($_SESSION["sessionGender"] == "m"){ $theGender1 = "he"; $theGender1C = "He"; $theGender2 = "his";} $theLink = "http://yadahome.com/signUpProcess.php?rndid=" . $rand_key . "&invid=" . $lastInvId ; $to = $_REQUEST["FriendsEmail"][$i]; $fromName = $_SESSION["sessionFname"] . " " . $_SESSION["sessionLname"]; $fromEmail = $_SESSION["sessionFname"] . "" . $_SESSION["sessionLname"]; $from = "$fromEmail@YadaHome.com"; $fromNamePoss = $_SESSION["sessionFname"] . "'s"; include "emailTerms.php"; $subject = "Please join my network! "; $greeting = "Hi,

"; if ( $_REQUEST["FriendsName"][$i] > " "){ $greeting = "Hi " . $_REQUEST["FriendsName"][$i] . ",

"; $subject = $_REQUEST["FriendsName"][$i]." ,Please join my network! "; } $message = " $subject

" . $greeting . " I set up a free profile at YadaHome.com, a new website for moms, dads and grandparents where we can share pictures, blogs, calendars, recipes and stay up-to-date. You can also network and meet other parents. I really want to add you as a friend to my network.

Here's the link to see everything they offer: http:yadahome.com
Here's the link to Join My Network: $theLink
Please join today! It's Free to join!

Thanks,
$fromName




-----------------------------------------------------
$emailTermsInvitation




"; //end of message $headers = "From: $from \r\n"; $headers .="Reply-To: $_SESSION[sessionEmail] \r\n"; $headers .= "Content-type: text/html\r\n"; //options to send to cc+bcc //$headers .= "Cc: [email]maa@p-i-s.cXom[/email]"; //$headers .= "Bcc: [email]email@maaking.cXom[/email]"; // now lets send the email. if( $OkToSendEmail == "Y"){ mail($to, $subject, $message, $headers); } } header("Location: contactsAddConfirmation.php"); exit ; }elseif($_REQUEST["invite"] == "Y" && $_REQUEST['Email'] < " "){ $msg = "In order to invite your friend to YADAhome.com please provide his/her email address." ; }else { $Address_1 = ereg_replace("'","´",$_REQUEST['Address_1']); $Address_2 = ereg_replace("'","´",$_REQUEST['Address_2']); $SQL = "INSERT INTO contacts ( Type, Emergency, User_ID, First_Name, Last_Name, Email, Phone, Mobile, Work, Address_1, Address_2, City, State_Residence, Zip, Share_Family, Share_Network ) VALUES ( '" . $_REQUEST["Type"] . "' , '" . $_REQUEST["Emergency"] . "' , '" . $_SESSION["sessionUserID"] . "' , '" . $_REQUEST['First_Name'] . "' , '" . $_REQUEST['Last_Name'] . "' , '" . $_REQUEST['Email'] . "' , '" . $_REQUEST['Phone'] . "' , '" . $_REQUEST['Mobile'] . "' , '" . $_REQUEST['Work'] . "' , '$Address_1' , '$Address_2' , '" . $_REQUEST['City'] . "' , '" . $_REQUEST['State_Residence'] . "' , '" . $_REQUEST['Zip'] . "' , '" . $_REQUEST['Share_Family'] . "' , '" . $_REQUEST['Share_Network'] . "' )"; $result = mysql_query($SQL) or die(mysql_error()); header("Location: contactsAddConfirmation.php"); exit ; } } ?> Yada Home
yada home
my fridge
     
search for contact:   Browse by clicking a letter below.

Browse BY clicking Contact Group below
family contacts friend contacts emergency contacts
work contacts all contacts  
a b c d e f g h i j k l m
n o p q w e t u v w x y z
 

 add a new contact
 
first name " />  
  address " />
last name " />       " />
email " /> Invalid format.     city " />
home phone " />     state " />
mobile phone " />     zip " />
work phone " />     category
/> invite this contact to join my network           /> this is an emergency contact |

 
 
 
free profile