易截截图软件、单文件、免安装、纯绿色、仅160KB

php取上一个页面中checkbox选中的值

 <?
$music = $_POST['music'];
//取得所选中的checkbox的个数
$coun=count($music);
if ( is_array( $music ) ) {
    echo '您选择的是&nbsp;:&nbsp;';
    foreach ( $music as $key => $var )
      echo '&nbsp;&nbsp;['.$var.']';
      echo $key;
}
?>
<form action=index.php method=post>
<input type="checkbox" name="music[]" value="流行音乐">流行音乐<br>
<input type="checkbox" name="music[]" value="乡村音乐">乡村音乐<br>
<input type="checkbox" name="music[]" value="古典音乐">古典音乐<br>
<input type=submit name=submit value=submit>
</form>


相关文档:

php 访问控制

 <?php
// An array of allowed users and their passwords
$users = array(
'harryf' => 'secret',
'tom' => 'mypwd'
);
// If there's no Authentication header, exit
if (!isset($_SERVER['PHP_AUTH_USER'])) {
header('HTTP/1.1 401 Unauthorized');
header('WWW-Authenticate: Basic real ......

php 时间转化函数实例

php中日期转换函数strtotime的用法:
语法:
int strtotime ( string time [, int now] )
返回将任何英文文本的日期时间描述解析为 Unix 时间戳
实例:
一,获取指定日期的unix时间戳 strtotime("2009-1-22") 示例如下:
echo strtotime("2009-1-22") 结果:1232553600
说明:返回2009年1月22日0点 ......

PHP连接Oracle并分页访问

使用的是ADODB库,需要有OCI8库.
<?php

//require("adodb5/adodb-exceptions.inc.php");
require("adodb5/adodb.inc.php");
$conn = NewADOConnection("oci8");
$conn->Connect($url, $user, $password, $service_name);
$rs;
try {
$rs = $conn->Execu ......

Windows下安装最新的Apache+PHP+MySQL指南

 注意:之前我在网上找了好多的资料 NND都不能正常配置成功 搞得我是非常地郁闷!
找到这篇文章之后我终于配置成功了!哇好爽呀!只要按照 上面的步骤就一定能够成功的!
此文章的安装方法适用于Windows XP下的Apache+PHP+MySQL安装,同时也适用于Windows 2003系统下的安装和配置。
1. 安装环境
操作系统是 Window ......

php中iconv函数使用方法(转)

 
iconv函数库能够完成各种字符集间的转换,是php编程中不可缺少的基础函数库。 
1、下载libiconv函数库http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.9.2.tar.gz; 
2、解压缩tar -zxvf libiconv-1.9.2.tar.gz; 
3、安装libiconv 
#configure --prefix=/usr/local/iconv 
#make&n ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号