Results 1 to 2 of 2

Thread: [Paying $$!] Upload script - pass filename to input box

  1. #1
    Join Date
    Nov 2008
    Posts
    3

    [Paying $$!] Upload script - pass filename to input box

    First off I'd like to state that anyone who helps me with this problem will receive $30 dollars through paypal.

    Okay I have implemented the FancyUpload Attach-A-File script into my web page and it works wonderfully. I have it customized to my liking, I just need to pass the file name as part of the form on the same page. Here is a link to the script files I'm using on my site.

    In script.php I change the file name so that spaces are replaced by underscores and a date is added on. The new file name is stored in the variable $new_name .

    In script.js there is a line that successfully changes the input box with name and id 'url', to text that i specify after the upload is done. I just cannot figure out how to call the $new_name variable from script.php into my script.js file so that I can add it to the input box. Maybe there is a better way to do it, I am leaving that up to you to figure out.

    Note, I do not need the file path as all uploads go to the same directory... I just need the modified file name.

    A little more info...
    I am using this script in conjunction with the Pligg CMS...
    The upload scripts are imported in pligg.tpl in between the comments in the head
    The upload html is in submit_step_1.tpl and it is these lines:
    Code:
    <a href="#" id="demo-attach">Click To Upload</a>
    <ul id="demo-list"></ul>
    <a href="#" id="demo-attach-2" style="display: none;"><!--Attach another file--></a>
    </div>
    PM me for my e-mail or screen name or even phone number if you are serious about helping me with this script. Thanks in advance for anyone that helps!
    Last edited by bopxb; 28 Sep 2009 at 08:48 PM.

  2. #2
    Join Date
    Nov 2008
    Posts
    3
    problem solved, feel free to lock this mods

Similar Threads

  1. Select box java script works in firefox, not internet explorer
    By moww in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 0
    Last Post: 15 Sep 2007, 10:23 PM
  2. Upload Script
    By bull1991 in forum General Questions
    Replies: 0
    Last Post: 28 May 2007, 12:31 PM

Posting Permissions

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