Jump to content

danylo

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

danylo's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, is there an alternative to using POST when you want to upload files? Let's say I am able to get the full address of the file I want to upload (ex. C:\bla\blabla\asdf.gif), can I do anything with that? Thanks. DAN
  2. Hi all, I was wondering how you can force the download dialog box to open in PHP. I have a csv file stored on my web server and when a user clicks on a button on the webpage I want the a new window to open and the download dialog box to be displayed asking the user where he wants to save the file. Thanks.
  3. Hi all, how do you store all the information inside _FILES[] when you do a post? How long does a file stay in the temp dir before you have to move it or it gets deleted? I need to know this because I want one php file to have the upload GUI and another to actually store the file on the server but I do not know how to pass the file information between the two. Thanks. DAN
  4. Hi, I kept it in the same window by changing my js function to function action_prepaid(url) { jsphp_shtml('',url,''); } I'm not sure if I really need the 1st or 3rd parameters though so I just left them blank and the url is the upload_captive.php page. The only problem is that even keeping in the same window it doesn't seem to keep the values from the form. So the upload_captive.php file doesn't see anything and uploads nothing. Just to recap: in the form action="upload_captive.php" will see what I uploaded and upload it properly but action="javascript:action_prepaid('upload_captive.php');" does not. Thanks. DAN
  5. 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
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.