Many programmers are using the
1. Naming
- < input
- type = ' checkbox '
- name = ' checkbox[] '
- value = $dwmyrow [Banzhu]
- />
2. Use
When the plan is part of a SQL instruction: if the field that participates in the control is numeric, the
- {
- $ Expr Join(",", $_post[' checkbox ');
- $ SQL
field in ($expr) ";
- }
If PHP Dynamic Web development says that the field participating in the control is numeric, then
- {
- $ Expr "'". Join ("', '", $_post
[' checkbox ']). ".";
- $ SQL
where field in ($expr) ";
- }
PHP determines whether a form form is submitted
- $ Action = $HTTP _post_vars["Button1"];
- if ($action= = "Commit" )
- {
- Perform form actions
- }
- Else
- {
- Read default values
- }
PHP gets string length in PHP Dynamic Web development
- Strlen ($myrow [1])
PHP URL Steering
- Header ("Location:".)
$_server["Http_referer"]);
Hyper-Global objects in PHP Dynamic Web development
- <? PHP
- $ a 1;
- $ b 2;
- function Sum ()
- {
$GLOBALS ["a"] + $GLOBALS ["B"];
- }
- Sum ();
- Echo $b;
- ?>
PHP form Values
If method= "get" uses $_get["test" instead of $test
If method= "POST" uses $_post["test" instead of $test
PHP Dynamic Web site development to obtain the current IP
-
- = $HTTP _server_vars["REMOTE_ADDR"]
- ?>
PHP Gets the current time
- Php
- echo Date ("y-m-d g:i:s");
- ?>
- Date ("Y year M month D Day")
- Date ("Y-n-j")
The above is the PHP Dynamic Web site development of specific techniques to explain.
http://www.bkjia.com/PHPjc/446290.html www.bkjia.com true http://www.bkjia.com/PHPjc/446290.html techarticle Many programmers are using 1, name input type = ' checkbox ' name = ' checkbox[] ' value = $dwmyrow [Banzhu]/2, use when planning as part of SQL instruction: If participating in controlled ...