//------------------------------------------------------------------------------ // Licensed Materials - Property of IBM // (c) Copyright IBM Corporation 2001,2002 All Rights Reserved. // US Government Users Restricted Rights - Use, duplication or disclosure // restricted by GSA ADP Schedule Contract with IBM Corp. //------------------------------------------------------------------------------ // Contact Information // // Filename: ml_set_contact_info.htm // // This page displays the current contact information settings, if any, and alowes the user to set/change the // contact information. // // When a POST is operation result information is retrieved from POST // data and displayed in the Message Box. // // // Input: POST data // url original request page // fname fname text field input // lname lname text field input // company company text field input // sysdesc sysdesc text field input // email email text field input // phone phone text field input // // Ouput: POST ('form_out') // url original request page // errorCode result of operation // Message message flag = message in POST data // returnMessage text information about the operation results // // // Change History: // // Date Defect Changed By Description of Change // ---- ------ ---------- --------------------- // 12/05/2005 roomor01 File Created //------------------------------------------------------------------------------ include('user_inc.htm'); class ContactInfo{ var $fname; var $lname; var $company; var $phone; var $email; var $sysdesc; function ContactInfo($fname, $lname, $company, $phone, $email, $sysdesc){ $this->fname = $fname; $this->lname = $lname; $this->company = $company; $this->phone = $phone; $this->email = $email; $this->sysdesc = $sysdesc; } } if($_SERVER[REQUEST_METHOD]=='POST'){ $url = $_REQUEST['url']; error_log("First name: ".$_POST['fname']); error_log("Last name:".$_POST['lname']); error_log("Company: ". $_POST['company']); error_log("Phone: ".$_POST['phone']); error_log("Email: ".$_POST['email']); error_log("Desc: ".$_POST['sysdesc']); $contact_info = new ContactInfo($_POST['fname'], $_POST['lname'], $_POST['company'],$_POST['phone'],$_POST['email'],$_POST['sysdesc']); set_contact_info($user, $contact_info); $returnMessage = "The contact information has been successfully modified."; } ?>