Results 1 to 2 of 2

Thread: Need help with php mkdir

  1. #1
    Join Date
    Jun 2006
    Posts
    4

    Need help with php mkdir

    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.
    HTML Code:
    <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>
    PHP Code:
    $myUser=$_POST['user']   
    $path="/userfiles/"
    $myFolder path myUser
    mkdir
    ($myFolder
    I know very little php. I hope someone can help.

  2. #2
    Join Date
    Jan 2007
    Location
    Cambridge, England
    Posts
    2
    $myFolder = $path . $myUser;
    You're also missing a lot of semi colons...

Similar Threads

  1. PhP Help Urgently Wanted
    By Daviking in forum The Lounge
    Replies: 1
    Last Post: 21 Feb 2006, 05:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •