Hi,
what I want to do is upload files to my server. After clicking upload a pop-up window should appear doing all the processing and stating if it is successful. This works if I do it in the same window but opening a new window I seem to lose all the information from the POST. How can I keep this information?
<form enctype="multipart/form-data" action="javascript:action_prepaid('upload_captive.php');" method="POST">
<table width="100%" border="0" cellspacing="0" cellpadding="4" align="left">
<input type="hidden" name="MAX_FILE_SIZE" value="100000" />
<tr><td size="35">Top Logo:</td><td><input name="uploadedfile1" type="file" /></td></tr>
<tr><td size="35">Bottom Logo:</td><td><input name="uploadedfile2" type="file" /></td></tr>
<tr><td size="35">Background Logo:</td><td><input name="uploadedfile3" type="file" /></td></tr>
<tr><td colspan="2"><input type="submit" class="loginsubmit" value="Upload" /> <input class="loginsubmit" name="reset" type="reset" value="Reset"> </td></tr>
</table>
</form>
//performs the actions on the prepaid pages
function action_prepaid(url) {
var newwindow;
newwindow=window.open(url,'name','height=200,width=400');
if (window.focus) {newwindow.focus()}
}
If I did <form enctype="multipart/form-data" action="upload_captive.php" method="POST"> this would work but I do not want to do this as I want to stay on the current page (not bring me to the upload_captive.php page. This php file is just a script that processes the upload and nothing is shown there except upload successful/failed.
Thanks.
DAN