Forum Moderators: coopster

Message Too Old, No Replies

Need form to find e-mail address and send to person

pick out an e-mail address and send.

         

lasko

10:15 am on Apr 12, 2003 (gmt 0)

10+ Year Member



I have a holiday rentals website and I have to create a form for each owner. The form will have to know which e-mail address to send it to from some sort of database or text list.

So when users clicks form id=3 it will use the e-mail address for form id=3 from a text list etc.

Their are too many people trying to steel my advertisers and they receive many viruses because all my advertisers
have normal text e-mail links.

I know nothing about mysql and I need something that I can work with easily.

Can anybody help me and point me in the right direction to the solution.

jatar_k

6:11 pm on Apr 13, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



sorry lasko, this seems to have slipped by me.

You don't necessarily have to even use a db if all you want is to keep an id and an email address. You could maybe just store it in a csv file.

Then when you send the email your script can look through csv file and get the email address and off it goes.

You could use fopen [php.net], fgetcsv [php.net] and fclose [php.net]. Use a while loop with fgetcsv and scan through the rows until you find the one you want and grab the email and put it into the mail [php.net] function.