ABCDEFGHIJKLMNOPQRSTUVWXYZ Xajax wrote the message book

Source: Internet
Author: User
Tags erro
Session_Start ();
Require_once (".. /conn/mysqlconn.php ");
Require_once (' xajax.inc.php ');
if (!isset ($_session[' wid '))
{
$_session[' wid ']=$_get["wid"];
}
if (Isset ($_post[' Content_4 '))
{
$con = new Createdb;
$con->createconn ();
$con->mysql= "INSERT into content (webid,tallname,txtconntent) VALUES (' $_session[wid] ', ' $_post[tallnane] ', ' $_ Post[content_4] ";
$con->getresule ();
}
@define (mun_2,3); Define a few notes per page
function tt ($form _mm)
{
if ($_session["code"]== $form _mm[' chetxt ')//use Xajax to get the verification code, different from the previous one to see the verification code right
{
$erro _msg= "Thank you for your support";
$JJS = "";
}
Else
{
$erro _msg= "The verification code is not correct, please write again";
$JJS = "true";
}
$obj = new Xajaxresponse ();
$obj->addassign ("Check_msg", "InnerHTML", $erro _msg);
$obj->addassign ("btn", "Disabled", $JJS);
return $obj->getxml ();
}
function callmsg ()
{
$obj = new Xajaxresponse ();
$obj->addscript ("Xajax_tt (xajax.getformvalues (' form_d ')");
return $obj->getxml ();
}
function xx ($UU)
{
$ad _2= "";
$BB =mun_2;
$start = $uu *mun_2-mun_2;
$II = $uu-1;
if ($uu ==1)
{
$II = $uu;
}
$I = $uu +1;
if ($I >@$_session[' $mun _5 '])
{
$I = $uu;
}
$PP = new Createdb;
$PP->createconn ();
$PP->mysql= "SELECT COUNT (*) from content where Webid=$_session[wid]";
$PP->getresule ();
$PP->getrow ();
$u = $pp->row[0];
$t = $u;
$PP->mysql= "SELECT * from the content where Webid=$_session[wid] GROUP by id desc limit $start, $bb";
$PP->getresule ();
$start = $start +1;
while ($pp->getrow ())
{
$ad = "keybed". $pp->row["Tallname"]. " Ad: ". $pp->row[" Tellall "]." ". $start. " Content of the building: ". $pp->row[" Txtconntent "]." ";
$ad _2= $ad _2. $ad;
@ $qqaa = " ";
$start + +;
}
$obj = new Xajaxresponse ();
$obj->addassign ("div", "InnerHTML", $ad _2);
$obj->addassign ("Ren", "InnerHTML", @ $qqaa);
$obj->addscript ("if (event.altkey) | | | ((Event.keycode = = 8) &&
(Event.srcElement.type! = ' text ' &&
Event.srcElement.type! = ' textarea ' &&
Event.srcElement.type! = ' password ')) | |
((Event.ctrlkey) && ((Event.keycode = = 78) | | (Event.keycode = = 82)) ) ||
(Event.keycode = = 116)) {
Event.keycode = 0;
Event.returnvalue = false;
}
");
return $obj->getxml ();
}
$ax = new Xajax ();
$ax->registerfunction ("xx");
$ax->registerfunction ("tt");
$ax->registerfunction ("callmsg");
$ax->processrequests ();
?>







DFDFDF

<textarea name="content_4" cols="70" rows="10" class="comment_input"></textarea>








The above describes the ABCDEFGHIJKLMNOPQRSTUVWXYZ Xajax wrote the message book, including the abcdefghijklmnopqrstuvwxyz aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • 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.