Add two more fields while upload the file using php file uploader

Last post 09-06-2010, 9:39 AM by Eric. 3 replies.
Sort Posts: Previous Next
  •  09-06-2010, 5:59 AM 63848

    Add two more fields while upload the file using php file uploader

    hi,
     
     
    This is senthil,  I want to upload a file with progress bar. 
    When i upload i file i want to add to more fields with it., i integrated phpfile uploaded with my page, but i submit the button the file is not uploading and the page is post without any field value.
    i cant retrieve any value.
     
    Pls. how can i upload that with two more fields.
     
     
    With Regards,
    Senthilkumar.V
     
  •  09-06-2010, 8:08 AM 63850 in reply to 63848

    Re: Add two more fields while upload the file using php file uploader

    Dear svsenthilmca,
     
    Please refer to the following code:
    <?php require_once "phpuploader/include_phpuploader.php" ?>
    <?php session_start(); ?>
    <html>
    <head>
    <title>Example</title>
    </head>
    <body>
    <form name="theForm" action="5.php?postback=true" method="post">
    <h1>Example</h1>
    <table>
     <tr>
      <td>Subject:</td>
      <td><input name="subject" type="text" id="subject"
       style="width: 170px;" /></td>
     </tr>
     <tr>
      <td>From:</td>
      <td><input name="from" type="text" id="from" style="width: 170px;" />
      </td>
     </tr>
     <tr>
      <td>To:</td>
      <td><input name="to" type="text" id="to" style="width: 170px;" /></td>
     </tr>
    </table>
    <br />
    <br />
    <br />
    <?php
    $uploader=new PhpUploader();
    $uploader->MultipleFilesUpload=true;
    $uploader->InsertText="Select multiple files (Max 1000M)";
    $uploader->MaxSizeKB=1024000;
    $uploader->Render();
    echo '<br \>';
    echo '<br \>';
    if(@$_POST["subject"]!=null)
    {
     echo $_POST["subject"];
     echo '<br \>';
    }
    if(@$_POST["from"]!=null)
    {
     echo $_POST["from"];
     echo '<br \>';
    }
    if(@$_POST["to"]!=null)
    {
     echo $_POST["to"];
     echo '<br \>';
    }
    ?></form>
    </body>
    </html>
     
    Thanks for asking
  •  09-06-2010, 8:40 AM 63851 in reply to 63850

    Re: Add two more fields while upload the file using php file uploader

    ya...thnxs...
     
    i have some doubts in this product.
     
    1. If i want to upload 3 files..  But at a time we upload only one file. so we have 3 browse button for upload.
        the below method is i want to upload
       
    Title 1   :  <textbox> *
    file 1  :  <browse button> *
    descripton:  <textarea>
     
    Title 2  :  <textbox> *
    file 2  :  <browse button> *
    descripton:  <textarea>
     
    Title 3   :  <textbox> *
    file 3  :  <browse button> *
    descripton:  <textarea>
     
    Here the title and files are mandatory fields....
     
    Here i want to post the file and uploading is starting by manually, the files are not uploaded.... i gave the correct path to save files.
    I tried this just one title,file descripition...
     
    but the file is not uploaded..
     
     With Regards,
    Senthilkumar.V
     
     
  •  09-06-2010, 9:39 AM 63853 in reply to 63851

    Re: Add two more fields while upload the file using php file uploader

    Dear Senthilkumar.V,
     
    Can you post your php uploader code here? We will check it.
     
    Thanks for asking
View as RSS news feed in XML