search and email users

the mail() function

Moderators: egami, macek, gesf

Post Reply
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!

johnj
php-forum Super User
php-forum Super User
Posts: 1803
Joined: Thu Mar 10, 2011 5:07 pm

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

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest