presentation for website development

2022.03.17

htmlsuperior

<meta charset='utf-8'>

<form method="post"enctype='multipart/form-data'action="upload.php">

<input type="file" name="mFile[]"><p>

<input type="file" name="mFile[]"><p>

<input type="file" name="mFile[]"><p>

(presentation for website development)<input type="file" name="mFile[]"><p>

(presentation for website development)<input type="file" name="mFile[]"><p>

<input type="submit"value='document 传'>

</form>

php文件

(presentation for website development)//echo '<pre>';

//

//print_r( $_FILES );

//$mfile = $_FILES['mFile'];

//

//$tmps = $mfile[ 'tmp_name' ];

(presentation for website development)//

//$dname = '../son/img/';

//

//$fn = $mfile['name'];

//

//foreach( $fn as $k=>$v ){

// $dfn = $dname . $v;

// $tmp = $tmps[ $k ];

(presentation for website development)// move_uploaded_file( $tmp, $dfn );

(presentation for website development)//}

//if( strstr( $fn, '.jpeg' ) )

// $fn = str_replace( '.jpeg', '.jpg', $fn );

(presentation for website development)//

//move_uploaded_file( $tmp, $fn );

$arr = array();

$arr[] = 1;

$arr[] = 11;

(presentation for website development)$arr[] = 111;

$arr[] = 1111;

$arr[] = 11111;

print_r( $arr );

返回列表
更多新闻资讯