I got the mkdir() down, although it threw me for a loop putting the folder in a different directory off of root until I found $_SERVER['DOCUMENT_ROOT'. thanks.
New question is I want to run...
<?php
$structure = '/Sales/New_Client';
if (!mkdir($_SERVER['DOCUMENT_ROOT'] . $structure, 0, true)) {
die('Failed to create folders...');
}
?>
...once the submit button is clicked. Where New_Client is picked up off the input form. Do I need to insert record first, or can it all be done in one click?
Could you give me a starting point for that? As an easy alternative I was thinking after submit, go to a page that ran the php script. Then go to the page I wanted to be next (i.e results page)
thanks