<!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> <!-- Optional theme --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css"> <!-- Latest compiled and minified JavaScript --> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]-->
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1">
if(條件1為真){ 執行動作1; }elseif(條件2為真){ 執行動作2; }else{ 執行動作3; }
header("location:http://網址");
http://網址/xxx.php?變數1=值1&變數2=值2& 變數3=值3...
setcookie('cookie名稱' , '值' , 存活時間);
session_start();
<?php include_once('tbs_class.php'); $TBS =new clsTinyButStrong ; $TBS->LoadTemplate('index_tpl.html',False) ; $TBS->Show() ; ?>
echo "<h1>{$_POST['news_title']}</h1>"; 可改為 [var.news_title]
$op=isset($_REQUEST['op'])?$_REQUEST['op']:''; $sn=isset($_REQUEST['sn'])?intval($_REQUEST['sn']):'';
switch ($變數) { case '變數值1': # code... break; default: # code... break; }