JS:
<Script language = "JavaScript">
Function _ submit ()
{
Newtree ();
XMLHTTP = new XMLHttpRequest ();
VaR BB = Document. getelementbyid ('33'). value; // variable of the parameter to be passed
XMLHTTP. onreadystatechange = function (){
If (XMLHTTP. readystate = 4 & XMLHTTP. Status = 200 ){
Document. getelementbyid ("test"). innerhtml = XMLHTTP. responsetext;
}}
XMLHTTP. Open ("get", "45454.php? Key = "+ BB, true );
// Alert XMLHTTP. readystate = 4;
XMLHTTP. Send ();
If (BB! = "")
{
Showpopwin ('create subfolders ', 'directory. php', 300,280, null, true, true );
} Else
{
Showpopwin ('create root directory folder ', 'directory. php', 300,280, null, true, true );
}
}
</SCRIPT>
45454. php parameter passing processing page
<? PHP
Session_start ();
$ A = $ _ Get ["key"];
$ _ Session ['name'] = $;
?>
The PHP Method for uploading to another page:
Session_start ();
$ Ssion = $ _ session ['name'];
Unset ($ _ session ['name']); // destroy a session variable
Another method is the session method:
Define session in PHP
Session_start ();
$ _ Session ["username"] = $ username;
Get this variable on other pages
Session_start ();
$ Ssion = $ _ session ['username'];
Unset ($ _ session ['sername']); // destroys a session variable.