php-form to send an email with .csv attachment?

iRant

New member
My client needs a membership form to send details of new applicants in csv form to the membership secretary. It'd be nice if there was a function that would do the whole thing in one or two steps but I think I need to break it down:


1 - Php form to collect details for example:
- surname
- middlename
- forename
- type
- area

(Which I can do but, from here on it's a little beyond me)


2 - Put the data into an array


3 - Put the array data into a csv file without using a DB (name the csv based on a user inputted field so the csv files don't get confused if multiple users are signing up simultaneously)


4 - Send an email to the membership Secretary with the csv file attached


5 - Delete the csv file afterwards (assuming it was temporarily saved on the server)


I'm sure this is possible with php and I've had great results so far using donated code but I'm just so new to php I have little clue about how to make it happen.

Any help greatly appreciated.
 
Back
Top