[FX.php List] FMSA7 - Change Password script step
Jason H.Awbrey
jason at stravinsoft.com
Mon Sep 13 14:34:16 MDT 2004
Hello All,
I am currently trying to use the new 'Change Password' script step in
FM7 via FX.php with no luck. I have a form with the two fields - old
password and new password. These fields are simply global text fields
in the database. The php script is as such:
<?php
session_start();
include ("FX.php");
include ("server_data.php");
$db = new FX($serverIP, $webCompanionPort);
$db->SetDBData("dbname", "dblayout");
$db->SetDBPassword($_SESSION['password'], $_SESSION['username']);
$db->AddDBParam('-recid', $_SESSION['recid']);
$db->AddDBParam('old_pass_gt', $_POST['old_pass_gt']);
$db->AddDBParam('new_pass_gt', $_POST['new_pass_gt']);
$db->AddDBParam('-script', 'change_pass');
$changepass =$db->FMEdit();
print_r($changepass['URL'] ."\n");
?>
The script is not being run when the PHP script is executed. If I take
the output from $changepass['URL'] and execute the URL directly against
the XML engine, it works! (???). What's going on???
Jason H. Awbrey
StravinSOFT, Incorporated
http://www.stravinsoft.com
More information about the FX.php_List
mailing list