本文整理汇总了PHP中Club::save_hidden方法的典型用法代码示例。如果您正苦于以下问题:PHP Club::save_hidden方法的具体用法?PHP Club::save_hidden怎么用?PHP Club::save_hidden使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Club
的用法示例。
在下文中一共展示了Club::save_hidden方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: switch
try {
$via = $_GET["via"];
switch ($via) {
default:
$player = new Player();
$player->fromget();
$name = $player->display_name(false);
$hidden = $player->save_hidden();
break;
case "club":
$club = new Club();
$club->fromget();
include 'php/opendatabase.php';
$club->fetchdets();
$name = $club->display_contact();
$hidden = $club->save_hidden();
break;
}
} catch (PlayerException $e) {
$mess = $e->getMessage();
include 'php/wrongentry.php';
exit(0);
} catch (ClubException $e) {
$mess = $e->getMessage();
include 'php/wrongentry.php';
exit(0);
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<?php
示例2: formvalid
include 'php/nav.php';
print <<<EOT
<h1>Update Club {$club->display_name()}</h1>
<p>Please update the details of the club as required using the form below.</p>
<p>Alternatively <a href="delclub.php?{$club->urlof()}">Click here</a> to remove
details of the club.</p>
EOT;
?>
<p>You can enter a new club by adjusting the
fields appropriately and pressing the "Add club" button.
</p>
<?php
print <<<EOT
<form name="clubform" action="updindclub2.php" method="post" enctype="application/x-www-form-urlencoded" onsubmit="javascript:return formvalid();">
{$club->save_hidden()}
<p>
Club Code:
<input type="text" name="clubcode" value="{$club->display_code()}" size="3" maxlength="3">
Name:
<input type="text" name="clubname" value="{$club->display_name()}">
</p>
<p>
Contact:<input type="text" name="contname" value="{$club->display_contact()}">
Phone:<input type="text" name="contphone" value="{$club->display_contphone()}">
Email:<input type="text" name="contemail" value="{$club->display_contemail_nolink()}">
</p>
<p>
Club website:
<input type="text" name="website" value="{$club->display_website_raw()}">
Meeting night: