Hi,
I am pretty much a new newbie when it comes to PHP, and have a problem that I need to solve, for a website that has to go live tomorrow.
Basically I have been using a javascript upload script called 'uploadify' which had an option for the upload folder which was added to the script in the form:
'folder' : '/songs/<?php echo $_SESSION["name"];?>',
I added the php echo to return the username from a PHP login, so it gets added to the path to the upload folder (each user has their own subfolder for uploading to).
With the new version of the uploadify script, the folder option has been moved to a separate PHP file where it is now in the form:
$targetFolder = '/songs/';
I need to find a way of adding the username variable to this line. I have tried using echo in various ways, and googled about, but it has stumped me, simple as it may be.
If anyone could let me know how I construct this line I'd be very grateful. Time is of the essence, as they say...
Thanks,
Nick