模仿OSO的论坛(三)

2016-01-29 14:23 4 1 收藏

模仿OSO的论坛(三),模仿OSO的论坛(三)

【 tulaoshi.com - PHP 】

  post.php(发新贴子)
<HTML<HEAD<TITLE疑难问题</TITLE
<LINK href="mypic/style.css" rel=STYLESHEET type=text/css</HEAD
<?php
if (!$cookie_user)
{echo "<script language='javascript'";  
echo "parent.location.href='index.php'";  
echo "</script";}
else {include ("connect.inc.php");
$query = "select * from my_user where user='".$cookie_user."' and password='".$cookie_password."'";  
$res = mysql_query($query);  
if (!$res)
{echo "<script language='javascript'";  
echo "parent.location.href='index.php'";  
echo "</script";}
include "connect.inc.php";
if ($theme) {$content=htmlspecialchars($content);
$content=nl2br($content);
$theme=htmlspecialchars($theme);
$theme=nl2br($theme);
$query = "INSERT INTO guestbook (name,type,theme,content,icon,time_open,time_close,answer_count,answer_name) VALUES ('".$cookie_user."',1,'".$theme."','".$content."',".$icon.",now(),now(),1,'".$cookie_user."')";  
$res = mysql_query($query);
if ($res)  
{echo "<script language='javascript'";  
echo "parent.location.href='post_end.php'";
echo "</script";}
else echo $query;}}
?
<SCRIPT language=JavaScript
<!--
var submitcount=0;
function check_com(){
   if(document.form.theme.value.length ==0){
      submitcount--;
      alert("主题不能为空!nYou must supply a subject.");
      return false;
   }

   if(document.form.content.value.length == 0){
      submitcount--;
      alert("加贴内容不能为空!nYou must supply a message.");
      return false;
   }
   return true;
}
//--
</SCRIPT
<BODY bgColor=#cccc99 bottomMargin=0 leftMargin=0 topMargin=0 marginwidth="0" marginheight="0"
      <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%" class=body_br
        <TBODY
<SCRIPT language=JavaScript  
src="http://img.jcwcn.com/attachment/portal"http://www.jcwcn.com/Files/BeyondPic/jcwcj/2005-12/10/05121010

来源:https://www.tulaoshi.com/n/20160129/1493143.html

延伸阅读
宝宝模仿的原因 小儿很喜欢模仿。刚出生的宝宝,就能模仿7-8个月的婴儿,已经会模仿简单的发声和动作,例如听到小猫叫,他也会学着“喵喵”;看见电视中有人拍手,他也会拍拍小手。2岁左右的小儿就能模仿较复杂的动作,如看到爸爸扫地,他也会拿起扫帚扫一扫;看到妈妈给他洗澡,他也想给玩具小猫、小狗洗个澡。3-4岁的小儿,...
标签: ASP
  对付抠门的空间服务商,以前大家想到了用链接数据表的方法存放更大的数据库。现在再给大家讲述另一个方法:用一个论坛的代码运行两个论坛程序。这样可以绕开那些以服务器CPU占用率过大为理由,不许在一个空间架设两套论坛程序的空间服务规定。 一、准备数据库 网上主流的ASP论坛程序(例如动网论坛6.1)大都是以Access数据...
标签: ASP
  简单的做了一个,扫描一次数据库可得一棵树 -----index.asp------ <html <head <title浮点论坛</title</head <body marginwidth="0" marginheight="0" <div align="center" <table width="100%" border="0" cellspacing="0" cellpadding=&quo...
深究起来,儿童摄影是从模仿婚纱摄影的经营模式发展而来的,许多成功的儿童影楼也是从模仿其他影楼起步的。不管是行业内的模仿,还是跨行业的模仿,纵观儿童摄影已有的成就、逐步清晰的行业规范和发展前景,模仿功不可没。模仿,已经成为儿童影楼发展过程中必备的一个环节。 成功者首先是优秀的模仿者 行业内,许多成功的儿童影楼在创业初期...
标签: PHP
  # sendmsg.php <?php require "func.php"; if ($b1) {     if (is_user_exits($fromname) and check_user_password($fromname,$password)) {         sendmsg();         echo "成功!<br<form me...

经验教程

853

收藏

86
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部