本文整理汇总了PHP中saveform函数的典型用法代码示例。如果您正苦于以下问题:PHP saveform函数的具体用法?PHP saveform怎么用?PHP saveform使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了saveform函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: headhtml
<?php
require 'global.php';
headhtml();
echo '<div class="nav" style="display:;"><a href="?">首页</a><a href="?action=addform&p_cid=';
echo $p_cid;
echo '">添加</a></div>
';
$action = $_GET['action'];
switch ($action) {
case 'saveform':
saveform();
break;
case 'addform':
addform($action);
break;
case 'modify':
addform($action);
break;
case 'del':
$db->query("delete from ve123_dh_goodlinks where link_id='" . intval($_GET['link_id']) . "'");
break;
}
echo '<table width="100%" border="0" cellpadding="3" cellspacing="1" class="tablebg">
<tr>
<th width="50">ID</th>
<th>分类名称</th>
<th width="80">操作</th>
</tr>
';
示例2: snyggve_get_latest
}
echo '<br style="clear: both;" />' . "\n";
echo '</div>' . "\n";
}
function snyggve_get_latest()
{
$query = 'SELECT id, title FROM snyggve ORDER by ID DESC LIMIT 12';
$result = mysql_query($query) or die(report_sql_error($query, __FILE__, __LINE__));
while ($data = mysql_fetch_assoc($result)) {
$items[] = $data;
}
return $items;
}
if ($_GET['action'] == 'upload' && login_checklogin()) {
$identifier = displace_image();
saveform($identifier);
} elseif ($_GET['action'] == 'save' && login_checklogin()) {
$id = saveimage();
jscript_location('?action=view_image&image_id=' . $id);
} elseif ($_GET['action'] == 'view_image') {
$user = view_image($_GET['image_id']);
if (!view_album($user)) {
echo '<h2>Senast uppladdat till Snyggve</h2>' . "\n";
snyggve_list_items(snyggve_get_latest());
}
if (login_checklogin()) {
uploadform();
}
} elseif ($_GET['action'] == 'view_user' && is_numeric($_GET['user_id'])) {
snyggve_intro();
view_album($_GET['user_id'], 'fulhack');