I'm trying to build a form to use phpuloader but will allow the user to specify the directory where the files will be saved. The actual form will be created with the following code:
<?php
//Step 1: Register Uploader component to your page
require_once "./phpuploader/include_phpuploader.php"
?>
<html>
<body>
<form id="form1" method="POST" action="uploadfiles.php">
Upload Directory<input size=75 type=text name='pathname'>
<?php
//Step 2: Create Uploader object.
$uploader=new PhpUploader();
//Step 3: Set a unique name to Uploader
$uploader->TempDirectory="tmp";
$uploader->Name="myuploader";
//Step 4: Render Uploader
$uploader->Render();
?>
</form>
</body>
</html>
I'm assuming the routine "uploadfiles.php" will retreive the pathname via $_POST['pathname'] as is traditionally done with forms.
Am I correct?