Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Mail

search and email users

the mail() function

Moderators: macek, egami, gesf

search and email users

Postby andythepict » Mon Jun 11, 2012 4:46 am

hello, i'm a newbie to php, i've got a table with name email etc, also various other fields that are 1 or 0 depending on what was filled in in registration. (at the moment they are architects, builders, painters and roofers) a company signs up and chooses which of these services he wants to provide. there is also a column with post codes, (ie iv1,iv2,iv3 etc) which the user can choose from. i would like a client to be able to search services by choosing the post code from a dropdown and then use checkboxes to choose which service he would like, then an email to be sent to the relevant company. ie chooses iv1 from post code dropdown, the architects and roofers from checkboxes, this will search the database for the correct companies and send off an email. can anyone help?! as i say i'm a real newbie, i though tit would be a breeze but it's not turning out that way! i'm using dreamweaver cs5 and finding the search part tricky!

thanks in advance!
andythepict
New php-forum User
New php-forum User
 
Posts: 5
Joined: Wed May 23, 2012 1:22 am

Re: search and email users

Postby johnj » Wed Jun 20, 2012 9:17 pm

1).create a form with all the information you want the user to select
2).Handle the submitted form, get all the relevant data for the search
3).Pass it to a sql to do the search
4).Show the result of the search
johnj
php-forum Super User
php-forum Super User
 
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: search and email users

Postby techamish » Sat Jul 14, 2012 2:25 am

through sql to all email id from table and print with ","
in to text box

techamish@gmail.com
techamish
New php-forum User
New php-forum User
 
Posts: 2
Joined: Sat Jul 14, 2012 2:15 am


Return to PHP coding => Mail

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.