I was wondering if someone can help me out on this one ...
i have a function that looks up the record id of a record in filemaker and makes changes to that record based on the returned record id ... i am using fx.php along with FileMaker Pro 8... the edit function basically changes the password stored on the database .. however, whenever this function is executed .. the password doesn't really change and the module then takes me to a page that is intended to be shown after the password is successfully reset .. any pointers on where i am erring ?
code:
<?php
function reset_password_submit($form_id, $form_values) {
$arrErrors = array();
$newPass = $form_values['password_new'];
$currentPass = $form_values['password_current'];
$memberrecid = reset_password_connect_to_fm("web");
$memberrecid->AddDBParam('people::userid', $user->name,'eq');
$memberrecid->AddDBParam('people::drupal_uid', $user->uid,'eq');
$memberrecidresult = $memberrecid->FMFind();
$recid = array_shift(explode('.',array_shift(array_keys($memberrecidresult['data'])))); // retreieving record id
$resetPassword = reset_password_connect_to_fm("web");
$resetPassword->AddDBParam('-recid',$recid);
$resetPassword->AddDBParam('people::password',$newPass);
$resetPassword->AddDBParam('ipeople::webxstatus','pending');