【发布时间】:2014-02-24 17:51:14
【问题描述】:
我正在尝试使用 php 和 html 表单使用路径创建一个新文件夹:uploads/$loggedInUser->username$actfolder 但没有成功,我想删除它:
php
<?php
include("db-settings.php");
include("config.php");
$foldername = $_POST['foldername'];
$path = "uploads/$loggedInUser->username
" . $foldername;
mkdir($path);
header('Location:myfiles.php')
?>
html
<form action="mkdir.php" method="post">
<input type="text name="foldername" id="foldername">
<input type="submit" value="submit">
</form>
【问题讨论】: