Location: PHPKode > projects > Simple SMS Site Software > simple-sms-site-software/do_add_address.php
<?php 
/******************************************************************************
************** Simple SMS Site Software *********************************
************** SSSSv1.0*****************************************************
************** by (aq) limited http://aql.com *******************************
************** All Rights Reserved ******************************************
************** Please read COPYRIGHT file prior to modification********
********************************************************************************/
	
session_start();

$user = $_SESSION['user'];
$pass = $_SESSION['pass'];

include("inc/header.inc.php");
include("inc/options.inc.php");

if ($access == "forbidden") {
	include("inc/restricted.inc.php");
}
elseif ($access == "locked") {
	include("inc/restricted.inc.php");
}
else {
	
	$new_contact = $_POST['name'];
	$contact_no = $_POST['number'];
	$other_detail = $_POST['other'];
		
	$query = "INSERT INTO address_book VALUES ('$user','$new_contact','$contact_no','$other_detail')";
	mysql_query($query);

	?><p align="center"><?echo "Contact has been added";?></p><?

}
include("inc/footer.inc.php");
?>
Return current item: Simple SMS Site Software