本文整理汇总了PHP中soapclient::ForgetPassword方法的典型用法代码示例。如果您正苦于以下问题:PHP soapclient::ForgetPassword方法的具体用法?PHP soapclient::ForgetPassword怎么用?PHP soapclient::ForgetPassword使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类soapclient
的用法示例。
在下文中一共展示了soapclient::ForgetPassword方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
if (isset($_POST['send'])) {
$uname = $_POST['mail'];
$param12 = array('UserName' => "{$uname}");
$client12 = new soapclient('http://etypeservices.com/service_GetPublicationIDByUserName.asmx?WSDL');
$response12 = $client12->GetPublicationID($param12);
//echo "<pre>";
//print_r($response12);
//echo "</pre>";
if ($response12->GetPublicationIDResult == -9) {
$msg = "Invalid UserName ";
} else {
if ($response12->GetPublicationIDResult == 3053) {
$param = array('UserName' => $uname);
$client = new soapclient('http://etypeservices.com/service_ForgetPassword.asmx?WSDL');
try {
$response = $client->ForgetPassword($param);
if ($response->ForgetPasswordResult == 1) {
$msg = "Credentials have been sent to your registered email";
} else {
$msg = "User is Not Registered For This Publication";
}
} catch (Exception $e) {
echo '' . $e->getMessage();
}
} else {
$msg = "User Not Exists";
}
}
}
?>