1.PHP
a.php HTML & JavaScript
The amount is super simple, I also want to write = =~
In the HTML code
/>
in JavaScript code
Copy CodeThe code is as follows:
b.php <-> MySQL
In PHP code
Copy CodeThe code is as follows:
$DBCNX = @mysql_connect ("localhost", "root", "1234");
if (! $dbcnx) {
Echo ("Unable to connect to the".) Database server at the this time. ");
Exit ();
}
if (! @mysql_select_db ("PMS")) {
Echo ("Unable to locate the joke".) Database at this time. ");
Exit ();
}
mysql_query ("SET NAMES ' GB2312 '");
$q =mysql_query ("SELECT * from ability where ALV = 1");
while ($row =mysql_fetch_array ($q)) {
$array 1[] = $row [AName];
}
?>
2.HTML
A. HTML--PHP (post mode)
In the HTML code
Copy CodeThe code is as follows:
In the do.php file code
Copy CodeThe code is as follows:
echo $_post[' count '];
?>
B. JavaScript, HTML
JavaScript code (available, can be changed)
Copy CodeThe code is as follows:
3.JavaScript
A. HTML (generic method, not validated), JavaScript
in JavaScript code
Copy CodeThe code is as follows:
HTML code
Copy CodeThe code is as follows:
B. JavaScript-PHP
Transfer via HTML
1.JavaScript Code First to HTML
Copy CodeThe code is as follows:
2.html Code to PHP
Copy CodeThe code is as follows:
3.do.php received
Copy CodeThe code is as follows:
echo $_post[' count '];
?>
http://www.bkjia.com/PHPjc/326107.html www.bkjia.com true http://www.bkjia.com/PHPjc/326107.html techarticle 1.PHP a.php-html lt;input type= "" readonly= "readonly" style= ' Background-color: #DCDCDC ' value=?php echo $perinfo [ID ];? /JavaScript code copy the code as follows: script type ...