Location: PHPKode > scripts > Php AddressBook 2 > php-addressbook-2/group-form.php
You are sending a message to every one in the group 
$sql  = " SELECT * FROM groups WHERE gid = $gid ";
# execute SQL statement
$result = mysql_query($sql,$cid);

# retrieve values
$row = mysql_fetch_array($result);
$gid = $row["gid"];
$groups = $row["groups"];
echo "<strong>$groups</strong>";
<br />
    <form method="post" action="?title=emailGroup&gid=<? echo "$gid"?>" enctype="multipart/form-data">
          <label for="home">Subject:</label>
          <input type="text" name="subject" id="subject" tabindex="1"/>
          <label for="broupe"></label>
          <label for="comments">Message:</label>
          <textarea name="message" id="message" cols="60" rows="10" tabindex="2"></textarea>
      <div class="barSubmit">
          <input type="submit" name="send" id="fsend" value="Send" class="button" tabindex="3" />
Return current item: Php AddressBook 2