Create folder after insert
I would like to create a folder on the server after an insert record into mysql database. I found the following code in the forum, but have a few questions:
<?php if($_SERVER["REQUEST_METHOD"] == "POST") {
mkdir("/Galleries/Users/".$_SESSION['userid']."", 0700);} ?>
I'd like to set it to two variables:
/Galleries/Users/ ProfileID [session variable]/ Title [form variable]
So it would check to see if profileid exists; if not it would create folder.
Then it would within that folder create one for a form variable Title.
Any thoughts?