Location: PHPKode > projects > Helpdesk Over Web > how/sysmgmt/editrecord-process.php
<?php

// Purpose : Processes contents of user details update form.

// Include Configuration File
require_once ('../includes/config.inc'); 

// Set the page title and include the HTML header.
$page_title = 'Helpdesk Over Web - System User Details Update';
include ('../includes/header.html');

// Connect to Database
require_once ('../includes/mysql_connect.php');
	
echo ("<H1>System Users</H1>");
echo ("<H3>User Profile Update</H3>");
$userid = $HTTP_GET_VARS['selecteduser'];
$fullname = $_POST['fullname'];
$tel = $_POST['tel'];
$email = $_POST['email'];
$role = $_POST['role'];

$sql = "UPDATE systemusers SET tel='$tel', email='$email', fullname='$fullname', role='$role' WHERE systemusers.HOWLogin='$userid';";
$result = mysql_query($sql)
   or die("Invalid query: " . mysql_error());
echo ("<P>The profile for user '$userid' has been successfully updated.");  
echo ("<H4>[ <A HREF='sysusers.php'>Main User Administration</A> ]</H4>");

// Include standard HTML footer
include ('../includes/footer.html');
?>
Return current item: Helpdesk Over Web