crazy8 Posted November 24, 2010 Share Posted November 24, 2010 Ok so I have a form that I am trying to get figured out with connecting to the DB and send mail to users based on a drop down "group" selection. Then once I select the group I am trying to figure out how to populate the "who" drop down which will contain an "all" option along with the names of all the people in the selected group. Once the group is selected and the person, or "all", then I need the form to send the email to all the email addresses associated with the selected group and users. This is my form so far. I know its not much yet but what I am looking to do, I have never done before. I have done a lot of googling and can not find quite what I am looking for. Any help would be appreciated. <div id="container"> <form action="" method="post" class="ajax_form"> <h2>SMS Form</h2> <h3>Send An SMS Message</h3> <ul> <li class="label"> Group: </li> <li class="field"> <select name="group" class="validate_blank combo"> <option value="0">Select:</option> <option value="Youth">Youth</option> <option value="Youth Parent">Youth Parent</option> <option value="Deacon">Deacon</option> </select> </li> <li class="label"> Who: </li> <li class="field"> <select name="who" class="validate_blank combo"> <option value="All">All:</option> </select> </li> <li class="label"> Message:</li> <li class="field"> <textarea name="mesg" maxlength="160" height="40" size="40" type="text" class="validate_blank text"/></textarea> </li> </ul> </form> </div> Quote Link to comment https://forums.phpfreaks.com/topic/219645-phpmysqlmail/ Share on other sites More sharing options...
trq Posted November 24, 2010 Share Posted November 24, 2010 Where is your php? Quote Link to comment https://forums.phpfreaks.com/topic/219645-phpmysqlmail/#findComment-1138809 Share on other sites More sharing options...
crazy8 Posted November 24, 2010 Author Share Posted November 24, 2010 Well right now I have just the form itself so I don't have any PHP for that form. Figured I should find out and research what I could before getting to deep in. I know how to connect to a DB using PHP but dont know how to do the other stuff I asked about. Quote Link to comment https://forums.phpfreaks.com/topic/219645-phpmysqlmail/#findComment-1138935 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.