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.