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 />
<fieldset>
    <form method="post" action="?title=emailGroup&gid=<? echo "$gid"?>" enctype="multipart/form-data">
        <dt>
          <label for="home">Subject:</label>
        </dt>
        <dd>
          <input type="text" name="subject" id="subject" tabindex="1"/>
        </dd>
        <dt>
          <label for="broupe"></label>
        </dt>
        <dt>
          <label for="comments">Message:</label>
        </dt>
        <dt>
          <textarea name="message" id="message" cols="60" rows="10" tabindex="2"></textarea>
        </dt>
      <div class="barSubmit">
        <dl>
          <input type="submit" name="send" id="fsend" value="Send" class="button" tabindex="3" />
        </dl>
      </div>
    </form>
    </fieldset>
Return current item: Php AddressBook 2