PDA

View Full Version : Need help with php mkdir



killer63
05 Jan 2007, 01:48 PM
What I am trying to do is when they click on the signup button i want it to create a folder that has the same name as the username field.

<form name="form1" id="signup" action="signupprocess.php" method="POST">
Full Name <input name="name" type="text" />
<br/>
Username <input name="user" type="text" />
<br/>
Password <input name="pass" type="password" />
<br/>
E-Mail Address <input name="email" type="text" />
<br/>
<br/>
<input name="Submit" type="submit" value="Signup" />
<input type="hidden" name="MM_insert" value="form1">
</form>

$myUser=$_POST['user']
$path="/userfiles/"
$myFolder = path . myUser
mkdir($myFolder)

I know very little php. I hope someone can help.

afmanuk
08 Jan 2007, 12:06 PM
$myFolder = $path . $myUser;
You're also missing a lot of semi colons...