Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 34

Thread: Upload Form

  1. #21
    Join Date
    Oct 2007
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    So where you have mail("$uploadedfile"), that is where the message would be? Thanks.

  2. #22
    Join Date
    Oct 2005
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    yes..

    mail("$uploadfileurl");

    uploadfileurl is what the url is whats going to be send to them..
    so they know where the file is.
    or message..
    Hey new design new look, goto xudas for personal webdsign help.. (:

  3. #23
    Join Date
    Oct 2007
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank You. Now one last question and I hope I can be done with this. I don't know anything about php, but from what others have helped me with. How do I incorporate it within the form so that when a file is successful it send this email?

  4. #24
    Join Date
    Oct 2005
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    I would make a process.php page. or same page.. its really hard, and took me for ever to make my host script that kinda does the same thing..

    uhmm.. idea? well after it process your gonna wanna put the mail process rght after the code..

    I can't do it right now but I can try tomorrow... not really sure if I can even do it..
    Hey new design new look, goto xudas for personal webdsign help.. (:

  5. #25
    Join Date
    Oct 2007
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Need some help, I have been trying to understand the order of what goes where to get it to function properly, is this correct. It gives me errors, of course.

    PHP Code:
    #-----------------------------------------------------------#
    # this function will upload the files.  :) ;) cool          #
    #-----------------------------------------------------------#
    if (move_uploaded_file($file_tmp,$upload_dir.$file_name)) {
    echo 
    "File $i: ($file_name) has been uploaded successfully.";
    }
    $to "pss_2002@hotmail.com";
    if(
    $submit)
    {
    mail("[I]Email Message[/I]")
    }else{
    echo 
    "File $i: Faild to upload.";
    }
    #end of (move_uploaded_file). 
    Not sure if I really need the if($submit)???

  6. #26
    Join Date
    Oct 2007
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Okay, after some looking around on the net, I have found an script that contained the necessary parts for sending out emails and it works! Now the problem, the email doesn't come to me with line breaks in it as I have put them in using <br>. Is there a specific way or another piece of code that I am missing or need to us? I need to also know how to create links and a bulleted list in the email as well as my attempts with html code inside the email have failed.

  7. #27
    Join Date
    Oct 2007
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I need help with getting this to work in an upload form. I get it to where I can see the two radio buttons, but when I click on one, it doesn't want to show the rest of the form.

    The initial setting is $num_files = 0 at the very begging of the script, as you select a radio button is suppose to show you the that amount of forms either it be 1 or 3.

    PHP Code:
        echo " <input type=\"radio\" onclick= $num_files=3 name='1'>
               <input type=\"radio\" onclick= 
    $num_files=1 name='1'>
            if (
    $num_files < 0){
        echo " 
    <form method=\"post\" action=\"$_SERVER[PHP_SELF]\" enctype=\"multipart/form-data\">";
               
    // show the file input field based on($num_files).
               
    for ($i 1$i <= $num_files$i++) {
                   echo 
    "File $i:   <input type=\"file\" size=\"70\" name=\"file"$i ."\"><br><br>";
               } 

  8. #28
    Join Date
    Oct 2007
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Okay, I got it to where when I click on what I want the selection is shown, but the issue that I have now is that all the available selections are capable of being seen. How can I hide those selections or call their function.

  9. #29
    Join Date
    Oct 2006
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    When you guys get this done, let me know. I never even knew that files could be POSTed via a form.

  10. #30
    Join Date
    Oct 2007
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Take a look at the following: FTP Upload Form

Bookmarks

Posting Permissions

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