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

  •  09-06-2010, 8:08 AM

    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
View Complete Thread