Results 1 to 8 of 8

Thread: Sendind attached files in php

  1. #1

    Thread Starter
    Hyperactive Member New to VB 6's Avatar
    Join Date
    Apr 2002
    Posts
    362

    Question Sendind attached files in php

    I have a php project that I'm working on. I saved a page from a site and am in the proccess of converting it for my use. I save the form page because I liked the layout. I had to creat the results page that mails me the answers from scratch using bit and pieces of code that I found on the net.

    I can get the page to send me the results ok, and I can get it to send me 1 attachment from the form page, but I can't get it to send me more that 1.

    Could someone please help me rewrite/change the code, or at least tell me how to modify the code so that it will send me the files that the user selects.

    I have included a ZIP file with my code.
    Attached Files Attached Files
    [VBCODE]
    Option Explicit
    Dim XXX As Porn
    Dim Wife As Nag

    Private Sub *****_Resize()
    On Error Resume Next
    Get Viagra
    End Sub
    [/VBCODE]

  2. #2
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    if you have it sending 1 attachement then make a loop tha tinserts all the attachemtns then sends.

  3. #3

    Thread Starter
    Hyperactive Member New to VB 6's Avatar
    Join Date
    Apr 2002
    Posts
    362
    How?

    As I said I had to patch it together from bit off the net. I don't really know what I'm doing.
    [VBCODE]
    Option Explicit
    Dim XXX As Porn
    Dim Wife As Nag

    Private Sub *****_Resize()
    On Error Resume Next
    Get Viagra
    End Sub
    [/VBCODE]

  4. #4
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    you will need to change your form to arrays. these

    name="fileatt1"

    will be like this

    name="fileatt[]"
    Last edited by phpman; Feb 4th, 2003 at 02:15 PM.

  5. #5
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    sorry forgot the other part

    rename attachemnt to .php
    Attached Files Attached Files

  6. #6

    Thread Starter
    Hyperactive Member New to VB 6's Avatar
    Join Date
    Apr 2002
    Posts
    362
    Sorry, but I don't know my array from a hole in the ground.

    I'm just learning the basics.
    [VBCODE]
    Option Explicit
    Dim XXX As Porn
    Dim Wife As Nag

    Private Sub *****_Resize()
    On Error Resume Next
    Get Viagra
    End Sub
    [/VBCODE]

  7. #7
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by New to VB 6
    Sorry, but I don't know my array from a hole in the ground.

    I'm just learning the basics.
    Arrays are pretty basic. You might want to check out a tutorial on them before you work on this. They're pretty easy to get a hang of.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  8. #8
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    Originally posted by New to VB 6
    Sorry, but I don't know my array from a hole in the ground.

    I'm just learning the basics.
    I just told you how and what to change

Posting Permissions

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



Click Here to Expand Forum to Full Width