Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 1 of 1
  1. #1
    Junior Member
    Join Date
    Jan 2013
    Posts
    6
    Member #
    34975
    Sorry if this is posted in the wrong section.

    This is a Html 5 page I am doing but it is about php that I need help with.

    So I have a page for Uploading Images to the server, I found this in a tutorial HERE :
    http://html5doctor.com/drag-and-drop-to-server/
    http://html5demos.com/dnd-upload

    Now I followed the steps and downloaded his code and this is the part I don't get:
    Code:
    if (tests.formdata) {
          var xhr = new XMLHttpRequest();
          xhr.open('POST', '/devnull.php');
          xhr.onload = function() {
            progress.value = progress.innerHTML = 100;
          };
    To be more specific this line of code:
    Code:
          xhr.open('POST', '/devnull.php');
    The file devnull.php has this code in it which to me is all giberish.

    <?php
    var_dump($_FILES)
    ?>

    How do I set up this upload code to connect to my database.?

  2.  


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 05:28 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com