本文整理汇总了PHP中gs_form_hidden函数的典型用法代码示例。如果您正苦于以下问题:PHP gs_form_hidden函数的具体用法?PHP gs_form_hidden怎么用?PHP gs_form_hidden使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了gs_form_hidden函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: gs_url
$DB->execute('DELETE FROM `gate_params` WHERE `gate_id`=' . $gwid);
$DB->execute('DELETE FROM `gates` WHERE `id`=' . $gwid);
$action = '';
}
#####################################################################
#####################################################################
if ($action === 'edit') {
$gwid = (int) @$_REQUEST['gw-id'];
?>
<form method="post" action="<?php
echo gs_url($SECTION, $MODULE);
?>
">
<?php
echo gs_form_hidden($SECTION, $MODULE);
?>
<input type="hidden" name="action" value="save" />
<input type="hidden" name="gw-id" value="<?php
echo $gwid;
?>
" />
<?php
if ($gwid > 0) {
# get gateway from DB
$rs = $DB->execute('SELECT `grp_id`, `type`, `name`, `title`, `allow_out`, `host`, `proxy`, `user`, `pwd`, `register`, `dialstr` FROM `gates` WHERE `id`=' . $gwid);
$gw = $rs->fetchRow();
if (!$gw) {
echo 'Gateway not found.';
return;
示例2: array
}
//echo " $requested_section $requested_module ";
?>
<form method="post" action="<?php
$url_argp_arts = array();
foreach ($_GET as $k => $v) {
if (!in_array($k, array('s', 'm', 'login_pwd'), true)) {
$url_arg_parts[] = urlEncode($k) . '=' . urlEncode($v);
}
}
echo htmlEnt(gs_url($requested_section, $requested_module, array_key_exists('sudo', $_REQUEST) ? $_REQUEST['sudo'] : null, implode('&', $url_argp_arts)));
?>
">
<?php
if ($interesting_module) {
echo gs_form_hidden($requested_section, $requested_module, array_key_exists('sudo', $_REQUEST) ? $_REQUEST['sudo'] : null), "\n";
$orig_request_uri = http_get_request_url();
if ($orig_request_uri != false) {
echo '<input type="hidden" name="login_request_uri" value="', htmlEnt($orig_request_uri), '" />', "\n";
}
}
?>
<label for="ipt-login_user"><?php
echo __('Benutzername');
?>
:</label><br />
<?php
if (@$_REQUEST['login_user'] != '') {
$login_user_prefill = $_REQUEST['login_user'];
} elseif (@$_REQUEST['sudo'] != '' && !in_array($_REQUEST['sudo'], array('my'), true)) {