How to create a user directory upon the user registering/joining. mkdir() is what would be used to create the directory but where in the .php code would I insert it. Here is a link to the .php code: http://tinyurl.com/qjuxty8 I know it would go after the:
else if($_POST['submit']=='Register')
This confirms that the user is in fact registering not signing it. The user input data is then ran through some statements making sure the user is inputting the correct length etc. . . and then the data is scrubed and cleaned for SQL Injection and what not. Here is an example of what you will see in the code.
$_POST['email'] = mysql_real_escape_string($_POST['email']);
$_POST['usr'] = mysql_real_escape_string($_POST['usr']);
$_POST['firstN'] = mysql_real_escape_string($_POST['firstN']);
$_POST['lastN'] = mysql_real_escape_string($_POST['lastN']);
$_POST['country'] = mysql_real_escape_string($_POST['country']);
$_POST['state'] = mysql_real_escape_string($_POST['state']);
$_POST['city'] = mysql_real_escape_string($_POST['city']);
$_POST['jobtitle'] = mysql_real_escape_string($_POST['jobtitle']);
$_POST['website'] = mysql_real_escape_string($_POST['website']);
Could someone please give me an idea on where this mkdir() needs to be inserted and any other useful information that could help, Thank You!