Results 1 to 11 of 11

Thread: Please help me get this form working
      
   

  1. #1
    houseoftracks is offline Corporal
    Join Date
    Jun 2006
    Posts
    15

    Default Please help me get this form working

    I am in need of some assistance please. I am very new to web building, so patience is definitely appreciated. I have reviewed the topics on uploads for forms but my head is spinning! I am trying to get this form functional:

    House Of Tracks, Online Recording Studio, Bass Tracks, Guitar Tracks, Drum Tracks, Backing Tracks

    This is a music recording site. Right now I am set up where my clients simply e-mail me their MP3 file. I would like to do something more professional - where they can complete this form and e-mail the information with the MP3 as an attachment. I can get the form to function simply as an e-mail. But I cannot get it to attach the MP3 file.

    Can anyone help a newbie?

    Thanks
    Bill
    House Of Tracks, Online Recording Studio, Bass Tracks, Guitar Tracks, Drum Tracks, Backing Tracks

  2. #2
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: Please help me get this form working

    Did you follow this post exactly?
    http://www.vodahost.com/vodatalk/for...sing-form.html

    Can you please post the php file (open in with note pad-copy and then paste it to thread). This way we'll be able to see the script and evaluate it.

    Andy
    PHP- is a blast!

  3. #3
    houseoftracks is offline Corporal
    Join Date
    Jun 2006
    Posts
    15

    Default Re: Please help me get this form working

    Hi Andy

    Yes, I think I did. Here is the PHP file:

    <html>
    <head>
    <title>Upload</title>
    <body>
    <?php
    $uploaddir = '/home/housscom/public_html/uploads/';
    $uploadfile = $uploaddir . basename($_FILES['userfile']['name']);
    echo '<pre>';
    if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
    echo "File is valid, and was successfully uploaded.\n";
    } else {
    echo "Possible file upload attack!\n";
    }
    ?>
    </body>
    </html>

    I then uploaded this file to my server. However, I do not understand the direction to "place both files in the same directory on your webserver" What other file are they referring to? Is this the proper script to enable the form I am looking to use?

    Thanks
    Bill

  4. #4
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: Please help me get this form working

    Bill-
    I just uploaded a file with your form (small wav file) and it seemed to work. Let me know what you received.

    Andy
    PHP- is a blast!

  5. #5
    houseoftracks is offline Corporal
    Join Date
    Jun 2006
    Posts
    15

    Default Re: Please help me get this form working

    Andy,
    I have nothing in my e-mail inbox. Should I be looking elsewhere?

    Thanks
    Bill

  6. #6
    houseoftracks is offline Corporal
    Join Date
    Jun 2006
    Posts
    15

    Default Re: Please help me get this form working

    Quote Originally Posted by Andy128
    Bill-
    I just uploaded a file with your form (small wav file) and it seemed to work. Let me know what you received.

    Andy

    OOOh Found it! I went to my Cpanel and it is in my "upload" folder. How do we get it to e-mail me as an attachment with the rest of the form?

    Thanks!
    Bill

  7. #7
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: Please help me get this form working

    The above script DOES NOT send you any email. It simply uploads the file in your public_html/uploads folder. Click Index of /uploads

    to see the file that Andy has uploaded.

    Please note that the script that you have used, by itself only uploads the file. It doesn't allow for any other information to be filled in the form, neither it performs checking for file type, file size etc. It also doesn't send you any email in your mailbox to let you know that a new file has been uploaded. This script was not intended for stand alone use, but as a part of a larger script that would do the rest of the job.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  8. #8
    houseoftracks is offline Corporal
    Join Date
    Jun 2006
    Posts
    15

    Default Re: Please help me get this form working

    Thank you Naval. That will save me some hair!! Can yopu please advise how I can get that form to function?

    Thanks again
    Bill

    House Of Tracks, Online Recording Studio, Bass Tracks, Guitar Tracks, Drum Tracks, Backing Tracks

  9. #9
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: Please help me get this form working

    If you re-look at the link in my post above - scroll down to Navals last post. There he gives a link to someone who posted a similar problem/request. I believe that if you follow that thread- you will be able to figure out how it is done.

    I am afraid I am if little help as I have not had the need to upload files and therefore, have never written a script for it.

    Andy
    PHP- is a blast!

  10. #10
    houseoftracks is offline Corporal
    Join Date
    Jun 2006
    Posts
    15

    Default Re: Please help me get this form working

    Quote Originally Posted by Andy128
    If you re-look at the link in my post above - scroll down to Navals last post. There he gives a link to someone who posted a similar problem/request. I believe that if you follow that thread- you will be able to figure out how it is done.

    I am afraid I am if little help as I have not had the need to upload files and therefore, have never written a script for it.

    Andy
    Yes Andy I saw that script. I believe it is for videos or images, as opposed to MP3's. I wouldnt know where to begin modifying it or if it could be modified for MP3 files

    Bill

  11. #11
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: Please help me get this form working

    Upoloading has nothing to do with mp3 or wav or, anyway, the file type. If you have an upload script, it will upload anything. Just take that script and modify it- if you need to - to suit your needs.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49