Please see my .php code below.

I'm having registrants choose a host from a table.

There is a host column and the host name is a link to the registration form.

When the 15th person clicks the submit button, I need a message to the link saying closed or full.

I know I need a counter.

Is there anyone who can help me.

Thanks in advance.

$to= "";
$subject= "40 Days In The Word Student Registration Form";
$message= "Host Name: " . $_POST['host'] . "\r\n".
"First Name: " . $_POST['firstname'] . "\r\n".
"Last Name: " . $_POST['lastname'] . "\r\n".
"Address: " . $_POST['address'] . "\r\n".
"City: " . $_POST['city'] . "\r\n".
"Phone: " . $_POST['phone'] . "\r\n".
"Email: " . $_POST['email'] . "\r\n".
"Membership: " . $_POST['member'] . "\r\n".
"Childcare: " . $_POST['childcare'] . "\r\n".
"Grade: " . $_POST['grades'];
$headers= "From: $from"."\r\n";
$headers .= "Bcc:" . "\r\n";
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Student Email</title>
<style type="text/css">
body {
margin: 0;
padding: 0;
color: #000;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 100%;
line-height: 1.4;
background-attachment: fixed;
background-color: #42413C;
background-image: url(Backgroundweb.png);
background-repeat: no-repeat;
background-position: center top;

/* ~~ Element/tag selectors ~~ */
ul, ol, dl { /* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to the .nav list unless you write a more specific selector. */
padding: 0;
margin: 0;
h1, h2, h3, h4, h5, h6, p {
margin-top: 0; /* removing the top margin gets around an issue where margins can escape from their containing div. The remaining bottom margin will hold it away from any elements that follow. */
padding-right: 15px;
padding-left: 15px; /* adding the padding to the sides of the elements within the divs, instead of the divs themselves, gets rid of any box model math. A nested div with side padding can also be used as an alternate method. */
a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
border: none;
/* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
a:link {
color: #42413C;
text-decoration: underline; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
a:visited {
color: #6E6C64;
text-decoration: underline;
a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
text-decoration: none;

/* ~~ this fixed width container surrounds the other divs ~~ */
.container {
width: 960px;
background: #FFF;
margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout */

/* ~~ the header is not given a width. It will extend the full width of your layout. It contains an image placeholder that should be replaced with your own linked logo ~~ */
.header {
background: #ADB96E;

/* ~~ This is the layout information. ~~

1) Padding is only placed on the top and/or bottom of the div. The elements within this div have padding on their sides. This saves you from any "box model math". Keep in mind, if you add any side padding or border to the div itself, it will be added to the width you define to create the *total* width. You may also choose to remove the padding on the element in the div and place a second div within it with no width and the padding necessary for your design.


.content {

padding: 10px 0;

/* ~~ The footer ~~ */
.footer {
padding: 10px 0;
background-color: #FEFEFE;
background-image: url(footer.png);
background-repeat: repeat-x;
text-align: center;
font-size: 12px;

/* ~~ miscellaneous float/clear classes ~~ */
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
float: right;
margin-left: 8px;
.fltlft { /* this class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */
float: left;
margin-right: 8px;
.clearfloat { /* this class can be placed on a <br /> or empty div as the final element following the last floated div (within the #container) if the #footer is removed or taken out of the #container */
font-size: 1px;
line-height: 0px;
<link href="shadow.css" rel="stylesheet" type="text/css" />
<link href="bottom shadow.css" rel="stylesheet" type="text/css" />

<div id="shadow">
<div class="container">
<div class="header"><a href="#"><img src="40daysinthewordbanner.png" width="961" height="268" alt="" /></a>
<!-- end .header --></div>
<div class="content">
<h2>Thank you again for registering for 40 Days In The Word!</h2>
<p>Your group leader will be contacting you soon. <strong>Love The Word. Learn The Word. Live The Word.</strong> <!-- end .content --></p>
<div class="footer">
<p>184 Hartfield Rd. | Hattiesburg, Mississippi 39402 | (601) 271-2227 | (601) 271-2265 fax<br/>
&copy;2013 <a href="">West Point Baptist Church</a><a href=""></a>. ALL RIGHTS RESERVED.</p>
<!-- end .footer --></div>
<!-- end .container --></div>
<div id="btmShad"></div>