Please help me get this form working

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • houseoftracks
    Corporal

    • Jun 2006
    • 15

    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
  • Andy128
    Major General

    • Dec 2005
    • 2317

    #2
    Re: Please help me get this form working

    Did you follow this post exactly?


    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!

    Comment

    • houseoftracks
      Corporal

      • Jun 2006
      • 15

      #3
      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

      Comment

      • Andy128
        Major General

        • Dec 2005
        • 2317

        #4
        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!

        Comment

        • houseoftracks
          Corporal

          • Jun 2006
          • 15

          #5
          Re: Please help me get this form working

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

          Thanks
          Bill

          Comment

          • houseoftracks
            Corporal

            • Jun 2006
            • 15

            #6
            Re: Please help me get this form working

            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

            Comment

            • navaldesign
              General & Forum Moderator

              • Oct 2005
              • 12080

              #7
              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!

              Comment

              • houseoftracks
                Corporal

                • Jun 2006
                • 15

                #8
                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

                Comment

                • Andy128
                  Major General

                  • Dec 2005
                  • 2317

                  #9
                  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!

                  Comment

                  • houseoftracks
                    Corporal

                    • Jun 2006
                    • 15

                    #10
                    Re: Please help me get this form working

                    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

                    Comment

                    • navaldesign
                      General & Forum Moderator

                      • Oct 2005
                      • 12080

                      #11
                      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!

                      Comment

                      Working...
                      X