<html>
<head>
<title></title>
</head>
<body>
<form action="" method="post">
<input type="file" name="file">
<input type="submit" value="upload">
</form>
</body>
</html>
<?php
if($_POST){
$a=strtoupper($_POST['file']);
echo "文件名称自动转换为大写:".$a."</br>";
$b=strtolower($_POST['file']);
echo "文件名称自动转换为小写:".$b;
}
<head>
<title></title>
</head>
<body>
<form action="" method="post">
<input type="file" name="file">
<input type="submit" value="upload">
</form>
</body>
</html>
<?php
if($_POST){
$a=strtoupper($_POST['file']);
echo "文件名称自动转换为大写:".$a."</br>";
$b=strtolower($_POST['file']);
echo "文件名称自动转换为小写:".$b;
}
?>