<?php
include ('cal_header.inc.php');
include ("cal_utils.php") ;
calHeaderFunc();
$phone=$_POST['phone'];
$email=$_POST['email'];
$sql="UPDATE calendar_users SET email = '".$email."' , phone = '".$phone."' WHERE username = '".$_SESSION["login"]."'";
mysql_query($sql) or die('Error, insert query failed');
echo "<br /><div class=\"headerc\">1 record added</div><br />";
echo "<meta http-equiv=\"refresh\" content=\"5;url=calendar.php\">";
include ('cal_functions.inc.php');
include ('cal_footer.inc.php');
?>