本文整理汇总了PHP中ContactForm::success方法的典型用法代码示例。如果您正苦于以下问题:PHP ContactForm::success方法的具体用法?PHP ContactForm::success怎么用?PHP ContactForm::success使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ContactForm
的用法示例。
在下文中一共展示了ContactForm::success方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: EdittingTools
</h1>
<?php
}
include_once "classes/Contact.php";
/*Database coding: this checks for multiple different actions made by users and responds accordingly.*/
include_once 'classes/ContactForm.php';
include_once 'classes/EdittingTools.php';
//Make a new contact, a new tool bar, and a new form
//$contacts = new Contact();
$tool = new EdittingTools();
$contactForm = new ContactForm("auto", 2);
$status;
switch (success) {
case $_GET['update']:
$contactForm->success("Updated successfully");
break;
case $_GET['add']:
$contactForm->success("Added new item successfully");
break;
case $_GET['delete']:
$contactForm->success("Deleted item successfully");
break;
}
if ($_GET['action'] == editGroup && $_SESSION['access'] >= 50 || $_GET['action'] == showGroup) {
//get the new group type corresponding to the ID
$group = new Contact($_GET['groupID']);
//if this is an update then update the contact
if (isset($_POST['updateGroup'])) {
updateGroup($group);
} else {