Hold on a moment there
Firstly let me tell you that we are all volunteers here, and will help those at our own wishes. With that in mind, do you think it's fair to tell us how quickly and important this is that you get it fixed? If it is important then you should considering hiring a professional.
I've already deleted a post, and changed your thread title.. so lets not let this happen again ok?
Now as for your problem, it looks like your server configuration has register globals set to off (which is a good thing). That means that you have to reference global variables (such as form variables) why their global namespace.
I also noticed in your html you are trying to reference a php variable. I don't think you meant to do that so lets go ahead and remove it.
Code: Select all
<input name="$cuser" type="text" id="$cuser" maxlength="100">
becomes
Code: Select all
<input name="cuser" type="text" id="cuser" maxlength="100">
There are some security implications with this.. you should
a) check whether the directory exists or not prior to creating it,
file_exists() may be of interest
b) You should consider creating them the directories in a subdirectory
Code: Select all
mkdir('users/'. $_POST['cuser'], 0777);
c) and lastly you should check whether they are entering legitimate data into the form
empty(),
isset(),
ctype_alpha(),
preg_match() all may be if interest