Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Upload button

  1. #1
    Regular Coder
    Join Date
    Nov 2002
    Thanked 0 Times in 0 Posts

    Upload button

    Hello Guys,

    I have an upload button (ajax) that allows users to upload multiple files to a temp directory. I am trying to figure out a way to have php/ajax count the amount of files and when it reaches say 5 images that the upload button disappears.

    I do not have a problem counting the files with PHP or counting it in the session. I can also do an if statement to hide the file upload button but I would have to refresh the page for that to work.. I was hoping you guys would give me some direction on this issue..

    Here is how I am counting the files
    PHP Code:

    $_SESSION['fname'] . $_SESSION['lname'] ;
    $files glob("temp_photo/$subn*.*");
    $count count($files);

  • #2
    Senior Coder Spudhead's Avatar
    Join Date
    Jun 2002
    London, UK
    Thanked 110 Times in 109 Posts
    Since you're asking a question related to client-side AJAX code, it may help if you post the client-side AJAX code you're using.


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts