Location: PHPKode > projects > Web Task Manager with Email/SMS Voting > Calendar/cal_settings.php
<?php
##########################################################################
# settings for users page by Michael Keane.

include_once ("cal_header.inc.php");
include_once ("cal_utils.php") ;

calHeaderFunc();

                echo "<script language=\"javascript\">";
                echo "function cancel() {";
                echo "document.location.href=\"./calendar.php\"";
                echo "}";
                echo "</script>";

$query = "select user_id from calendar_users where username = '".$_SESSION["login"]."'";
 $result = mysql_query($query);
 $rows = mysql_num_rows($result);
 $row = mysql_fetch_object($result);
 $userid=$row->user_id;
  $query = "select user_id,username, email, phone from calendar_users where user_id = " .$userid;
  $result = mysql_query($query);
  $rows = mysql_num_rows($result);
 
while ($row = mysql_fetch_object($result))
	{
            echo "<br /><div class=\"headerc\">Edit Details</div><br /><table align=\"center\">";
            echo "<form name=\"feedback\" method=\"post\" action=\"update.php\">";
        echo "<tr><td align=\"right\">username:</td><td>$row->username</td>";
		echo "</tr><tr><td align=\"right\">email:</td><td><input type=\"text\" name=\"email\" size=\"25\" value=\"".$row->email."\" /></td>";
		echo "</tr><tr><td align=\"right\">phone:</td><td><input type=\"text\" name=\"phone\" size=\"25\" value=\"".$row->phone."\" /></td>";
        echo "<tr><td><br /></td></tr></tr><tr><td>";
        echo "<input type=\"submit\" value=\"Save Changes\" /></td>";
        echo "<td><input type=\"button\" value=\"Cancel\" onClick=\"cancel()\" /></td></form></tr></table><br />";
	}
    
include ('cal_functions.inc.php');
include ('cal_footer.inc.php');
?>
Return current item: Web Task Manager with Email/SMS Voting