Upload a file using PHP from thickbox window and pass the filename after successful upload with some jQuery code to the parent document.
Enter a name, click Upload to select/upload a file.
Upload or select file
Click here to download the php example code and find here more information about the php upload script.