My Forum source code (iv) _php Foundation

Source: Internet
Author: User
POST. PHP publish the theme of the page, the release of information submitted to the okey.php to deal with.

<title> Forum Post </title>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<style type=text/css>
P {font-family:normal; font-size:9pt; LINE-HEIGHT:14PT}
DIV {font-family:normal; font-size:9pt; LINE-HEIGHT:14PT}
</STYLE>
?
Include "linkfox.inc.php";
Include "info.inc.php";
?>
<link href= "Js/cpcw.css" rel=stylesheet/link>

<body bgcolor= "#FFFFFF" >
?
$tem = $HTTP _cookie_vars[flyfoxnet]; Fetching Cookie Information
$temp =explode ("|", $tem);
$cookiem = $temp [0];
$useinfo =cuser ($cookiem, $action);
if ($useinfo [2]== "Visitor") $usename = 1;
?>
<table width= "100%" cellpadding= "4" cellspacing= "0" border= "0" >
<tr>
&LT;TD height= "rowspan=" "2" width= "60%" >
<div align= "right" ></div>
<div align= "right" ></div>
</td>
&LT;TD height= "width=" 10% > </td>
&LT;TD height= "width=" 10% > </td>
&LT;TD height= "width=" 10% > </td>
&LT;TD height= "width=" 10% > </td>
</tr>
<tr>
&LT;TD height= "width=" 10% ">
<div align= "center" ><a href= "Reguse.php?action=xy" ></a></div>
</td>
&LT;TD height= "width=" 10% ">
<div align= "center" ><a href= "Useinfo.php?action=find" ></a></div>
</td>
&LT;TD height= "width=" 10% ><a href= "Useinfo.php?action=edit" ></a></td>
&LT;TD height= "width=" 10% "><a href=" okey.php?d=q ></a></td>
</tr>
<tr>
&LT;TD height= ">"
<div align= "Left" > Current position: <font color= "#0000FF" > Fox net ─> Fox Network Forum ─> issue the topic </font> echo "<font color= ' 00dd00 ' >". $useinfo [2]. " </font> ";?></div>
</td>
&LT;TD height= ">"
<div align= "center" ><a href= "foxbbs.php" ></a></div>
</td>
&LT;TD height= "width=" 10% ">
<div align= "center" ><a href= "superuse.php" ></a></div>
</td>
&LT;TD height= "width=" 10% ">
<div align= "center" ><a href= "Reguse.php?action=xy" ></a></div>
</td>
&LT;TD height= "width=" 10% ">
<div align= "center" ><a href= ". /index.php "></a></div >
</td>
</tr>
</table>
<script language= "JavaScript" >//This JS is used to check the status of information in the form, is it a bit familiar? Oh...... Oso on the cut.
<!--
var submitcount=0;

function Checksubmit () {
if (Submitcount = = 0) {
submitcount++;
return true;
} else {
if (submitcount>0) {
Alert ("The post has been successfully submitted, don't worry, wait!") ");
return false;
}
}
}

function check_com () {
if (Document.form.title.value.length ==0) {
submitcount--;
Alert ("Subject cannot be empty!) Just fill it in! ");
return false;
}

if (Document.form.message.value.length = = 0) {
submitcount--;
Alert ("oh! sorry! add content can not be empty! ");
return false;
}
return true;
}
-->
</script>
<table width= "100%" border= "0" cellspacing= "0" cellpadding= "0" >
<tr bgcolor= "#009999" >
&LT;TD height= ><div align= ' center ' ><font color= ' ffffff ' >
? Assign user information to $useinfo[0 when checking for users earlier.
if ($useinfo [0]) echo "<font color= ' 00ff00 ' >[". $useinfo [2]. "] </font> Hello! Please fill in your posts below. ";
else echo "<font color= ' 00ff00 ' >". $useinfo [2]. " </font> Hello, please log in first, then post, if you have not registered, please register first! ";
?></font></div>
</td>
</tr>
<tr>
&LT;TD height= > </td>
</tr>
<tr>
&LT;TD height= "class=" Bott ">
<table width= "65%" border= "0" cellspacing= "0" cellpadding= "0" align= "center" >
<tr>
&LT;TD height= ">"
<div align= "Left" >
<form name= "form" method= "POST" onsubmit= "return check_com ()" action= ' okey.php ' >
? If the information is not found when the $usename ==1)//Front check, the $usename is assigned a value of 1, which is used to determine if user authentication is required.
{
echo "Username: <input style= ' background-color: #ffffff; Border-bottom: #000000 1px dashed; Border-left: #000000 1px dashed; Border-right: #000000 1px dashed; Border-top: #000000 1px dashed; Type= ' text ' name= ' username ' maxlength= ' 8 ' size= ' > If you are not registered, come <a href= ' reguse.php?action=xy ' > register here </a ><br> ";
echo "Password: <input style= ' background-color: #ffffff; Border-bottom: #000000 1px dashed; Border-left: #000000 1px dashed; Border-right: #000000 1px dashed; Border-top: #000000 1px dashed; Type= ' password ' name= ' userpass ' size= ' maxlength= ' 8 ' > forgot password to come here <a href= ' useinfo.php?c=pass ' > Retrieve password </a >!<p> ";
}
?>
<div align= "center" > Theme: <input style= "Background-color: #ffffff; Border-bottom: #000000 1px dashed; Border-left: #000000 1px dashed; Border-right: #000000 1px dashed; Border-top: #000000 1px dashed "type=" text "name=" title "Size=" "Maxlength=" ></div><br>
<div align= "center" > Post Content <br>
<textarea style= "Background-color: #ffffff; Border-bottom: #000000 1px dashed; Border-left: #000000 1px dashed; Border-right: #000000 1px dashed; Border-top: #000000 1px dashed "name=" message "wrap=" VIRTUAL "cols=" "rows=" "></textarea>
<input type= "Submit" class= "Bott" name= "submit" value= "Good! Submit "onclick=" return Checksubmit () "> <input type=" reset "class=" Bott "name=" Submit2 "value=" wiped! Rewrite the >
</div>
</form>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr bgcolor= "#009999" >
&LT;TD height= > </td>
</tr>
</table>
</body>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.