Jump to content

Recommended Posts

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>

Link to comment
https://forums.phpfreaks.com/topic/219645-phpmysqlmail/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.