I’m using an upload and crop script that works, but I need to pass it a variable for a user so that each user can upload and crop their pic. I pass a query to the script and it works, except I can’t use it as part of another variable.
[php]
$var = @$_GET[‘u’];
$upload_dir = “reg/” . “$u”;
$upload_path = $upload_dir."/";
$large_image_name = “large.jpg”;
$thumb_image_name = “thumb.jpg”;
[/php]
THe $upload_dir doesn’t work. It shows up as
[php]/reg//[/php]
What am I doing wrong?