PDA

Click to See Complete Forum and Search --> : Sendind attached files in php


New to VB 6
Feb 2nd, 2003, 09:32 AM
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.

phpman
Feb 2nd, 2003, 11:44 AM
if you have it sending 1 attachement then make a loop tha tinserts all the attachemtns then sends.

New to VB 6
Feb 4th, 2003, 11:28 AM
How?

As I said I had to patch it together from bit off the net. I don't really know what I'm doing.

phpman
Feb 4th, 2003, 12:54 PM
you will need to change your form to arrays. these

name="fileatt1"

will be like this

name="fileatt[]"

phpman
Feb 4th, 2003, 01:16 PM
sorry forgot the other part :p

rename attachemnt to .php

New to VB 6
Feb 5th, 2003, 05:40 PM
Sorry, but I don't know my array from a hole in the ground.

I'm just learning the basics.

The Hobo
Feb 5th, 2003, 06:51 PM
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.

phpman
Feb 5th, 2003, 08:02 PM
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