Well I think I have what you need. Fisrt you would submit the first part with the email and so on. Then when you display the thank message this code will pop up the the window that will do the rest.
HTML Code:
<SCRIPT LANGUAGE="JavaScript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=200,height=200');");
}
</script>
<BODY onLoad="javascript:popUp('http://www..com')">
Just the width and height of the the pop up in the javascript and
put the url to the php file that submits the file with the information in the url like:
HTML Code:
<BODY onLoad="javascript:popUp('http://www.test.com/submit.php?file=c:\file.zip')">
So you can grab the infromation from the url to send to the server. Hope that helps