kemper Posted November 13, 2007 Share Posted November 13, 2007 I am using a form for team registration into our league. The form I was going to use was giving me errors. The code is below. The error I am receiving is: Parse error: syntax error, unexpected '<' in /home/myusername/public_html/mywebsite/f2007reg.php on line 8 What did I do wrong? <?php require_once "maincore.php"; require_once "subheader.php"; require_once "side_left.php"; if (!checkrights("FR")) fallback("../index.php"); <SCRIPT LANGUAGE='JavaScript'> <!-- Begin function countChoices(obj) { max = 6; // max. number allowed at a time Sept8 = obj.form.Sept8.checked; Sept9 = obj.form.Sept9.checked; Sept15 = obj.form.Sept15.checked; Sept16 = obj.form.Sept16.checked; Sept22 = obj.form.Sept22.checked; Sept23 = obj.form.Sept23.checked; Sept29 = obj.form.Sept29.checked; Sept30 = obj.form.Sept30.checked; Oct6 = obj.form.Oct6.checked; Oct7 = obj.form.Oct7.checked; Oct13 = obj.form.Oct13.checked; Oct14 = obj.form.Oct14.checked; Oct20 = obj.form.Oct20.checked; Oct21 = obj.form.Oct21.checked; Oct27 = obj.form.Oct27.checked; Oct28 = obj.form.Oct28.checked; count = (Sept8 ? 1 : 0) + (Sept9 ? 1 : 0) + (Sept15 ? 1 : 0) + (Sept16 ? 1 : 0) + (Sept22 ? 1 : 0) + (Sept23 ? 1 : 0) + (Sept29 ? 1 : 0) + (Sept30 ? 1 : 0) + (Oct6 ? 1 : 0) + (Oct7 ? 1 : 0) + (Oct13 ? 1 : 0) + (Oct14 ? 1 : 0) + (Oct20 ? 1 : 0) + (Oct21 ? 1 : 0) + (Oct27 ? 1 : 0) + (Oct28 ? 1 : 0); if (count > max) { alert('Oops! You can only choose up to ' + max + ' conflicts! \nUncheck a date if you want to pick another.'); obj.checked = false; } } // End --> </script> <style> <!-- .style114 {font-family: Verdana; font-size: 11px; color: #FF0000; font-weight: bold; } --> </style> opentable (Fall 2007/Spring 2008 Registration); //echo '<form enctype='multipart/form-data' action='processf07reg.php' method='POST'> <table border='1' cellspacing='1' style='border-width:0px; border-collapse: collapse; ' bordercolor='#000066' width='100%' cellpadding='5'> <tr> <td height='30' width='100%' bordercolor='#000000' colspan='2' style='border-left-color: #000066; border-left-width: 1px; border-right-color: #000066; border-right-width: 1px; border-top-color: #000066; border-top-width: 1px' bgcolor='#1B179F'> <blockquote> <blockquote> <blockquote> <P align='center' style='margin-top: 0; margin-bottom: 0'><b> <font size='5' face='Arial' color='#FFFFFF'>This form must be completed prior to 11:59 pm on June 15, 2007.</font></b></P> </blockquote> </blockquote> </blockquote> <P align='center' style='margin-top: 0; margin-bottom: 0'><b> <font size='5' face='Arial' color='#FFFFFF'>Thank you.</font></b></P> <p style='margin-top: 0; margin-bottom: 0'><font size='1' color='#FFFFFF'> </font></td> </tr> <tr> <td height='30' width='100%' bordercolor='#000000' colspan='2' style='border-left-color: #000066; border-left-width: 1px; border-right-color: #000066; border-right-width: 1px; border-top-color: #000066; border-top-width: 1px' bgcolor='#C0C0C0'> <b> <font size='2' face='Arial'> All fields marked with </font> <font color='#0000FF' size='4' face='Arial'>* </font> <font size='2' face='Arial'>are required fields.</font></b></td> </tr><tr> <td height='30' width='348' bordercolor='#000000' style='border-left: 1px solid #000066; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium'> <font face='Arial' size='2'>Club:</td> <td height='30' width='852' bordercolor='#000000' style='border-left-style: none; border-left-width: medium; border-right: 1px solid #000066; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium'> <font face='Verdana'><font face='Arial'><select name='Club'><option value='Select One'>Select One:<option value='Club A'>Club A<option value='Club B'>Club B<option value='Other: (Please Specify Below and add $25 non-District Fee)'>Other Club: (Please specify below)</select></font><b><font size='2' face='Arial'> </font> <font color='#0000FF' size='4' face='Arial'>*</font></b></td></tr><tr> <td height='30' width='348' bordercolor='#000000' style='border-left: 1px solid #000066; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium'> <p align='right'> <font face='Arial' size='2'>Other (Non-Metro District) Club:</font></td> <td height='30' width='852' bordercolor='#000000' style='border-left-style: none; border-left-width: medium; border-right: 1px solid #000066; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium'> <font face='Verdana'> <font face='Arial' size='2'> </font><font face='Arial'><input type=text name='OtherClub' size=20> </font> <span style='FONT-FAMILY: Arial'><font color='#ff0000' size='2'>< add $25 Non-District Fee</font></span></td></tr><tr> <td height='30' width='348' bordercolor='#000000' style='border-left: 1px solid #000066; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium'> <font face='Arial' size='2'>Team Name:</td> <td height='30' width='852' bordercolor='#000000' style='border-left-style: none; border-left-width: medium; border-right: 1px solid #000066; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium'> <font face='Verdana'><font face='Arial'><input type=text name='Team' size=30></font><b><font size='2' face='Arial'> </font> <font color='#0000FF' size='4' face='Arial'>*</font></b></td></tr><tr> <td height='30' width='348' bordercolor='#000000' style='border-left: 1px solid #000066; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium'> <font face='Arial' size='2'>Age <font color='#FF0000'>(includes Base Fees)</font>:</td> <td height='30' width='852' bordercolor='#000000' style='border-left-style: none; border-left-width: medium; border-right: 1px solid #000066; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium'> <font face='Verdana'><font face='Arial'><select name='Age'><option value='Select One:'>Select One:<option value='Girls U-8 ($90) New Team Registration'>Girls U-8 ($90) New Team Registration<option value='Girls U-9 ($90) New Team Registration'>Girls U-9 ($90) New Team Registration<option value='Girls U-10 ($90) New Team Registration'>Girls U-10 ($90) New Team Registration<option value='Girls U-11 ($125) New Team Registration'>Girls U-11 ($125) New Team Registration<option value='U-7 ($90) New Team Registration'>U-7 ($90) New Team Registration<option value='U-8 ($90) New Team Registration'>U-8 ($90) New Team Registration<option value='U-9 ($90) New Team Registration'>U-9 ($90) New Team Registration<option value='U-10 ($90) New Team Registration'>U-10 ($90) New Team Registration<option value='U-11 ($125) New Team Registration'>U-11 ($125) New Team Registration<option value='U-12 ($125) New Team Registration'>U-12 ($125) New Team Registration<option value='U-13 ($125) New Team Registration'>U-13 ($125) New Team Registration<option value='U-14 ($125) New Team Registration'>U-14 ($125) New Team Registration</select></font><b><font size='2' face='Arial'> </font> <font color='#0000FF' size='4' face='Arial'>*</font></b></td></tr><tr> <td height='30' width='348' bordercolor='#000000' style='border-left: 1px solid #000066; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium'> <font face='Arial' size='2'>Division: </td> <td height='30' width='852' bordercolor='#000000' style='border-left-style: none; border-left-width: medium; border-right: 1px solid #000066; border-top-style: none; border-top-width: medium'> <font face='Verdana'><font face='Arial'><select name='Division'><option value='Select One:'>Select One:<option value='A (Highest)'>A (Highest)<option value='B'>B<option value='C'>C<option value='D (Lowest)'>D (Lowest)</select></font><b><font size='2' face='Arial'> </font> <font color='#0000FF' size='4' face='Arial'>*</font></b></td></tr><tr> <td height='30' width='1008' bordercolor='#000000' style='border-left: 1px solid #000066; border-right: 1px solid #000066; border-top-style: solid; border-top-width: 1px; border-bottom-style: none; border-bottom-width: medium' colspan='2' bgcolor='#4c74b1'> <font color='#FFFFFF'> <b><font face='Arial' size='4'>Conflicts </font><font face='Arial' size='2'> (You may select up to Six Dates Only)</font><font face='Arial' size='4'>:</font></b></font></td> </tr><tr> <td height='30' width='1200' bordercolor='#000000' style='border-left: 1px solid #000066; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium' colspan='2'> <table border='0' cellpadding='0' style='border-collapse: collapse' width='100%' id='table3'> <tr> <td align='center' colspan='5' bordercolor='#FF6666' style='border-style: solid; border-width: 1px'> <p align='left'> <b> <span style='font-family:Arial;color:black'><font size='2'>For Fall 2</font></span><font size='2'><font face='Arial'><span style='font-family: ArialMT; color: black'>0</span></font><span style='font-family:Arial;color:black'>0</span><font face='Arial'><span style='font-family: ArialMT; color: black'>7</span></font><span style='font-family: Arial;color:black'>, each team may block out up to </span></font> <span style='font-family:Arial;color:black'><font size='2'>6 weekend days for tournaments and/or any other conflict. A weekend tournament will be considered 2 days worth of blackout dates.</font></span></b></td> </tr> <tr> <td align='center' bgcolor='#FF6666' style='border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666' colspan='5'><b> <font face='Arial' size='2' color='#FFFFFF'>WYSA Sanctioned Tournaments </font> <font face='Arial' size='1' color='#FFFFFF'>(for reference only)</font></b></td> </tr> <tr> <td align='center' width='185' valign='top' style='border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666'> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>Saturday,</font></p> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>September 8</font></td> <td align='center' width='15' valign='top' style='border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666'> <input type=checkbox name=Sept8 onClick='countChoices(this)' value='X'></td> <td align='center' valign='top' style='border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666'> <p style='margin-top: 0; margin-bottom: 0'><font face='Arial' size='2'>Tournament 1</font></td> <td align='center' width='15' valign='top' style='border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666'> <input type=checkbox name=Sept9 onClick='countChoices(this)' value='X'></td> <td align='center' width='185' valign='top' style='border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666'> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>Sunday,</font></p> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>September 9</font></td> </tr> <tr> <td align='center' width='185' valign='top' style='border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666' bgcolor='#CCCCCC'> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>Saturday,</font></p> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>September 15</font></td> <td align='center' width='15' valign='top' style='border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666' bgcolor='#CCCCCC'> <input type=checkbox name=Sept15 onClick='countChoices(this)' value='X'></td> <td align='center' valign='top' style='border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666' bgcolor='#CCCCCC'> <p style='margin-top: 0; margin-bottom: 0'><font face='Arial' size='2'> Tournament 2</font></td> <td align='center' width='15' valign='top' style='border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666' bgcolor='#CCCCCC'> <input type=checkbox name=Sept16 onClick='countChoices(this)' value='X'></td> <td align='center' width='185' valign='top' style='border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666' bgcolor='#CCCCCC'> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>Sunday,</font></p> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>September 16</font></td> </tr> <tr> <td align='center' width='185' valign='top' style='border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666'> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>Saturday,</font></p> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>September 22</font></td> <td align='center' width='15' valign='top' style='border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666'> <input type=checkbox name=Sept22 onClick='countChoices(this)' value='X'></td> <td align='center' valign='top' style='border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666'> <p style='margin-top: 0; margin-bottom: 0'><font face='Arial' size='2'> Tournament 3</font></td> <td align='center' width='15' valign='top' style='border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666'> <input type=checkbox name=Sept23 onClick='countChoices(this)' value='X'></td> <td align='center' width='185' valign='top' style='border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666'> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>Sunday,</font></p> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>September 23</font></td> </tr> <tr> <td align='center' width='185' valign='top' style='border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666' bgcolor='#CCCCCC'> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>Saturday,</font></p> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>September 29</font></td> <td align='center' width='15' valign='top' style='border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666' bgcolor='#CCCCCC'> <input type=checkbox name=Sept29 onClick='countChoices(this)' value='X'></td> <td align='center' valign='top' style='border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666' bgcolor='#CCCCCC'> <p style='margin-top: 0; margin-bottom: 0'><font face='Arial' size='2'> Tournament 4</font></td> <td align='center' width='15' valign='top' style='border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666' bgcolor='#CCCCCC'> <input type=checkbox name=Sept30 onClick='countChoices(this)' value='X'></td> <td align='center' width='185' valign='top' style='border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666' bgcolor='#CCCCCC'> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>Sunday,</font></p> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>September 30</font></td> </tr> <tr> <td align='center' width='185' valign='top' style='border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666'> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>Saturday,</font></p> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>October 6</font></td> <td align='center' width='15' valign='top' style='border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666'> <input type=checkbox name=Oct6 onClick='countChoices(this)' value='X'></td> <td align='center' valign='top' style='border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666'> <p style='margin-top: 0; margin-bottom: 0'><font face='Arial' size='2'> Tournament 5</font></td> <td align='center' width='15' valign='top' style='border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666'> <input type=checkbox name=Oct7 onClick='countChoices(this)' value='X'></td> <td align='center' width='185' valign='top' style='border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666'> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>Sunday,</font></p> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>October 7</font></td> </tr> <tr> <td align='center' width='185' valign='top' style='border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666' bgcolor='#CCCCCC'> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>Saturday,</font></p> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>October 13</font></td> <td align='center' width='15' valign='top' style='border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666' bgcolor='#CCCCCC'> <input type=checkbox name=Oct13 onClick='countChoices(this)' value='X'></td> <td align='center' valign='top' style='border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666' bgcolor='#CCCCCC'> <p style='margin-top: 0; margin-bottom: 0'><font face='Arial' size='2'> Tournament 6</font></td> <td align='center' width='15' valign='top' style='border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666' bgcolor='#CCCCCC'> <input type=checkbox name=Oct14 onClick='countChoices(this)' value='X'></td> <td align='center' width='185' valign='top' style='border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666' bgcolor='#CCCCCC'> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>Sunday,</font></p> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>October 14</font></td> </tr> <tr> <td align='center' width='185' valign='top' style='border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666'> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>Saturday,</font></p> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>October 20</font></td> <td align='center' width='15' valign='top' style='border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666'> <input type=checkbox name=Oct20 onClick='countChoices(this)' value='X'></td> <td align='center' valign='top' style='border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666'> <p style='margin-top: 0; margin-bottom: 0'><font face='Arial' size='2'> Tournament 7</font></td> <td align='center' width='15' valign='top' style='border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666'> <input type=checkbox name=Oct21 onClick='countChoices(this)' value='X'></td> <td align='center' width='185' valign='top' style='border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666'> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>Sunday,</font></p> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>October 21</font></td> </tr> <tr> <td align='center' width='185' valign='top' style='border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666' bgcolor='#CCCCCC'> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>Saturday,</font></p> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>October 27</font></td> <td align='center' width='15' valign='top' style='border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666' bgcolor='#CCCCCC'> <input type=checkbox name=Oct27 onClick='countChoices(this)' value='X'></td> <td align='center' valign='top' style='border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666' bgcolor='#CCCCCC'> <p style='margin-top: 0; margin-bottom: 0'><font face='Arial' size='2'> Tournament 8</font></td> <td align='center' width='15' valign='top' style='border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666' bgcolor='#CCCCCC'> <input type=checkbox name=Oct28 onClick='countChoices(this)' value='X'></td> <td align='center' width='185' valign='top' style='border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666' bgcolor='#CCCCCC'> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>Sunday,</font></p> <p style='margin-top: 0; margin-bottom: 0'> <font size='2' face='Arial' color='#1B179F'>October 28</font></td> </tr> <tr> <td align='center' valign='top' style='border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px' bordercolor='#FF6666' colspan='5' bgcolor='#FFFF00'> <p align='left'><span style='COLOR: black; FONT-FAMILY: Arial'> <font size='2'>* Please plan to play on all weekend dates not checked on the above list.</font></span></td> </tr> </table> </td> </tr> <tr> <td height='30' width='1200' bordercolor='#000000' style='border-left: 1px solid #000066; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: none; border-bottom-width: medium' colspan='2' bgcolor='#4c74b1'> <b> <font size='4' face='Arial' color='#FFFFFF'>NOTE:</font></b></td> </tr><tr> <td height='30' width='1200' bordercolor='#000000' style='border-left: 1px solid #000066; border-right-style: solid; border-right-width: 1px; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium' colspan='2'> <p align='left'> <span style='font-family:Arial;color:red'><font size='2'>The league will not allow any game changes after June 15, 2007 (per league rule stated below). Please plan to play on all weekend dates <u>not</u> included on your block-out list (above).</font></span></p> <p class='MsoNormal' style='margin-right:-12.0pt'> <span style='font-family:Arial'><font size='2'> </font></span><u><span style='font-family:Arial'><font size='2'>League Rule #5</font></span></u><span style='font-family: Arial'><font size='2'> Game Changes </font> </span></p> <p class='p1' style='margin:0in;margin-bottom:.0001pt'> <span style='font-family:Arial'><font size='2'>All games are to be played at the scheduled place and time. Our League will not approve any game changes. This means that on the scheduled game date, a score for that game must be reported or each team will be charged with a forfeit of the game. </font> <i> <font size='2'>Inclement weather is the only approved reason for game rescheduling. * Participation in additional tournaments (tournaments not given on Registration Form or Conflict Form) is not acceptable for League Game(s) change. These league games will result in a forfeit and fines will be accessed, if team does not show.</font></i></span></p> </td> </tr><tr> <td height='30' width='1199' bordercolor='#000000' style='border-left:1px solid #000066; border-right-style:solid; border-right-width:1px; border-top-style:none; border-top-width:medium; border-bottom-style:none; border-bottom-width:medium' colspan='2'> <font face='Arial'><input type=checkbox name='Rules' value='Yes'><font size='2'> </font> </font> <b> <font size='2' face='Arial'> </font><font color='#0000FF' size='4' face='Arial'>*</font></b><font size='2' face='Arial'> I have read & understand the Our League policy regarding Game Changes.</font></td> </tr><tr> <td height='30' width='348' bordercolor='#000000' style='border-left:1px solid #000066; border-right-style:none; border-right-width:medium; border-top-style:none; border-top-width:medium; border-bottom-style:none; border-bottom-width:medium'> <font face='Arial' size='2'>Person completing form:</font></td> <td height='30' width='852' bordercolor='#000000' style='border-right:1px solid #000066; border-left-style:none; border-left-width:medium; border-top-style:none; border-top-width:medium; border-bottom-style:none; border-bottom-width:medium'> <font face='Verdana'><font face='Arial'><input type=text name='Signed' size=30></font><b><font size='2' face='Arial'> </font> <font color='#0000FF' size='4' face='Arial'>*</font></b></td></tr><tr> <td height='30' width='348' bordercolor='#000000' style='border-left:1px solid #000066; border-right-style:none; border-right-width:medium; border-top-style:none; border-top-width:medium; border-bottom-style:none; border-bottom-width:medium'> <font face='Arial' size='2'>Person's Duties with above mentions team:</td> <td height='30' width='852' bordercolor='#000000' style='border-right:1px solid #000066; border-left-style:none; border-left-width:medium; border-top-style:none; border-top-width:medium; border-bottom-style:none; border-bottom-width:medium'> <font face='Verdana'><font face='Arial'><input type=text name='Duties' size=20></font><b><font size='2' face='Arial'> </font> <font color='#0000FF' size='4' face='Arial'>*</font></b></td></tr><tr> <td height='30' width='348' bordercolor='#000000' style='border-left:1px solid #000066; border-right-style:none; border-right-width:medium; border-top-style:none; border-top-width:medium; border-bottom-style:none; border-bottom-width:medium'> <font face='Arial' size='2'>Contact Phone (###-###-###):</td> <td height='30' width='852' bordercolor='#000000' style='border-right:1px solid #000066; border-left-style:none; border-left-width:medium; border-top-style:none; border-top-width:medium; border-bottom-style:none; border-bottom-width:medium'> <font face='Verdana'><font face='Arial'><input type=text name='ContactPhone' size=10></font><b><font size='2' face='Arial'> </font> <font color='#0000FF' size='4' face='Arial'>*</font></b></td></tr><tr> <td height='30' width='348' bordercolor='#000000' style='border-left:1px solid #000066; border-right-style:none; border-right-width:medium; border-top-style:none; border-top-width:medium'> <font face='Arial' size='2'>email:</td> <td height='30' width='852' bordercolor='#000000' style='border-right:1px solid #000066; border-left-style:none; border-left-width:medium; border-top-style:none; border-top-width:medium'> <font face='Verdana'><font face='Arial'><input type=text name='email' size=30></font></font><b><font size='2' face='Arial'> </font> <font color='#0000FF' size='4' face='Arial'>*</font></b></td></tr><tr> <td colspan='2' height='25' width='100%' style='border-left:medium none #000066; border-right:medium none #000066; border-bottom:medium none #000066; border-top-style:solid; border-top-width:1px' bordercolor='#000000'> <p align='center' style='margin-bottom: 0'> <p align='center'> <font face='Arial' size='2'><input type=submit value='Submit'> <input type=reset value='Reset'></font></td></tr> </table></form>\n"; } closetable(); echo "</td>\n"; require_once "side_right.php"; require_once BASEDIR."footer.php"; ?> Quote Link to comment Share on other sites More sharing options...
jimlawrnc Posted November 13, 2007 Share Posted November 13, 2007 try the following I believe the php code needs to be separated from the html i could be wrong tho.. <?php require_once "maincore.php"; require_once "subheader.php"; require_once "side_left.php"; if (!checkrights("FR")) fallback("../index.php"); <html> <head> <SCRIPT LANGUAGE='JavaScript'> <!-- Begin function countChoices(obj) { max = 6; // max. number allowed at a time Sept8 = obj.form.Sept8.checked; Sept9 = obj.form.Sept9.checked; Sept15 = obj.form.Sept15.checked; Sept16 = obj.form.Sept16.checked; Sept22 = obj.form.Sept22.checked; Sept23 = obj.form.Sept23.checked; Sept29 = obj.form.Sept29.checked; Sept30 = obj.form.Sept30.checked; Oct6 = obj.form.Oct6.checked; Oct7 = obj.form.Oct7.checked; Oct13 = obj.form.Oct13.checked; Oct14 = obj.form.Oct14.checked; Oct20 = obj.form.Oct20.checked; Oct21 = obj.form.Oct21.checked; Oct27 = obj.form.Oct27.checked; Oct28 = obj.form.Oct28.checked; count = (Sept8 ? 1 : 0) + (Sept9 ? 1 : 0) + (Sept15 ? 1 : 0) + (Sept16 ? 1 : 0) + (Sept22 ? 1 : 0) + (Sept23 ? 1 : 0) + (Sept29 ? 1 : 0) + (Sept30 ? 1 : 0) + (Oct6 ? 1 : 0) + (Oct7 ? 1 : 0) + (Oct13 ? 1 : 0) + (Oct14 ? 1 : 0) + (Oct20 ? 1 : 0) + (Oct21 ? 1 : 0) + (Oct27 ? 1 : 0) + (Oct28 ? 1 : 0); if (count > max) { alert("Oops! You can only choose up to " + max + " conflicts! \nUncheck a date if you want to pick another."); obj.checked = false; } } // End --> </script> </head> <style> <!-- .style114 {font-family: Verdana; font-size: 11px; color: #FF0000; font-weight: bold; } --> </style> <body> opentable (Fall 2007/Spring 2008 Registration); //echo "<form enctype='multipart/form-data' action='processf07reg.php' method='POST'> <table border="1" cellspacing="1" style="border-width:0px; border-collapse: collapse; " bordercolor="#000066" width="100%" cellpadding="5"> <tr> <td height="30" width="100%" bordercolor="#000000" colspan="2" style="border-left-color: #000066; border-left-width: 1px; border-right-color: #000066; border-right-width: 1px; border-top-color: #000066; border-top-width: 1px" bgcolor="#1B179F"> <blockquote> <blockquote> <blockquote> <P align="center" style="margin-top: 0; margin-bottom: 0"><b> <font size="5" face="Arial" color="#FFFFFF">This form must be completed prior to 11:59 pm on June 15, 2007.</font></b></P> </blockquote> </blockquote> </blockquote> <P align="center" style="margin-top: 0; margin-bottom: 0"><b> <font size="5" face="Arial" color="#FFFFFF">Thank you.</font></b></P> <p style="margin-top: 0; margin-bottom: 0"><font size="1" color="#FFFFFF"> </font></td> </tr> <tr> <td height="30" width="100%" bordercolor="#000000" colspan="2" style="border-left-color: #000066; border-left-width: 1px; border-right-color: #000066; border-right-width: 1px; border-top-color: #000066; border-top-width: 1px" bgcolor="#C0C0C0"> <b> <font size="2" face="Arial"> All fields marked with </font> <font color="#0000FF" size="4" face="Arial">* </font> <font size="2" face="Arial">are required fields.</font></b></td> </tr><tr> <td height="30" width="348" bordercolor="#000000" style="border-left: 1px solid #000066; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium"> <font face="Arial" size="2">Club:</td> <td height="30" width="852" bordercolor="#000000" style="border-left-style: none; border-left-width: medium; border-right: 1px solid #000066; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium"> <font face="Verdana"><font face="Arial"><select name='Club'><option value='Select One'>Select One:<option value='Club A'>Club A<option value='Club B'>Club B<option value='Other: (Please Specify Below and add $25 non-District Fee)'>Other Club: (Please specify below)</select></font><b><font size="2" face="Arial"> </font> <font color="#0000FF" size="4" face="Arial">*</font></b></td></tr><tr> <td height="30" width="348" bordercolor="#000000" style="border-left: 1px solid #000066; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium"> <p align="right"> <font face="Arial" size="2">Other (Non-Metro District) Club:</font></td> <td height="30" width="852" bordercolor="#000000" style="border-left-style: none; border-left-width: medium; border-right: 1px solid #000066; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium"> <font face="Verdana"> <font face="Arial" size="2"> </font><font face="Arial"><input type=text name='OtherClub' size=20> </font> <span style="FONT-FAMILY: Arial"><font color="#ff0000" size="2">< add $25 Non-District Fee</font></span></td></tr><tr> <td height="30" width="348" bordercolor="#000000" style="border-left: 1px solid #000066; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium"> <font face="Arial" size="2">Team Name:</td> <td height="30" width="852" bordercolor="#000000" style="border-left-style: none; border-left-width: medium; border-right: 1px solid #000066; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium"> <font face="Verdana"><font face="Arial"><input type=text name='Team' size=30></font><b><font size="2" face="Arial"> </font> <font color="#0000FF" size="4" face="Arial">*</font></b></td></tr><tr> <td height="30" width="348" bordercolor="#000000" style="border-left: 1px solid #000066; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium"> <font face="Arial" size="2">Age <font color="#FF0000">(includes Base Fees)</font>:</td> <td height="30" width="852" bordercolor="#000000" style="border-left-style: none; border-left-width: medium; border-right: 1px solid #000066; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium"> <font face="Verdana"><font face="Arial"><select name='Age'><option value='Select One:'>Select One:<option value='Girls U-8 ($90) New Team Registration'>Girls U-8 ($90) New Team Registration<option value='Girls U-9 ($90) New Team Registration'>Girls U-9 ($90) New Team Registration<option value='Girls U-10 ($90) New Team Registration'>Girls U-10 ($90) New Team Registration<option value='Girls U-11 ($125) New Team Registration'>Girls U-11 ($125) New Team Registration<option value='U-7 ($90) New Team Registration'>U-7 ($90) New Team Registration<option value='U-8 ($90) New Team Registration'>U-8 ($90) New Team Registration<option value='U-9 ($90) New Team Registration'>U-9 ($90) New Team Registration<option value='U-10 ($90) New Team Registration'>U-10 ($90) New Team Registration<option value='U-11 ($125) New Team Registration'>U-11 ($125) New Team Registration<option value='U-12 ($125) New Team Registration'>U-12 ($125) New Team Registration<option value='U-13 ($125) New Team Registration'>U-13 ($125) New Team Registration<option value='U-14 ($125) New Team Registration'>U-14 ($125) New Team Registration</select></font><b><font size="2" face="Arial"> </font> <font color="#0000FF" size="4" face="Arial">*</font></b></td></tr><tr> <td height="30" width="348" bordercolor="#000000" style="border-left: 1px solid #000066; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium"> <font face="Arial" size="2">Division: </td> <td height="30" width="852" bordercolor="#000000" style="border-left-style: none; border-left-width: medium; border-right: 1px solid #000066; border-top-style: none; border-top-width: medium"> <font face="Verdana"><font face="Arial"><select name='Division'><option value='Select One:'>Select One:<option value='A (Highest)'>A (Highest)<option value='B'>B<option value='C'>C<option value='D (Lowest)'>D (Lowest)</select></font><b><font size="2" face="Arial"> </font> <font color="#0000FF" size="4" face="Arial">*</font></b></td></tr><tr> <td height="30" width="1008" bordercolor="#000000" style="border-left: 1px solid #000066; border-right: 1px solid #000066; border-top-style: solid; border-top-width: 1px; border-bottom-style: none; border-bottom-width: medium" colspan="2" bgcolor="#4c74b1"> <font color="#FFFFFF"> <b><font face="Arial" size="4">Conflicts </font><font face="Arial" size="2"> (You may select up to Six Dates Only)</font><font face="Arial" size="4">:</font></b></font></td> </tr><tr> <td height="30" width="1200" bordercolor="#000000" style="border-left: 1px solid #000066; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" colspan="2"> <table border="0" cellpadding="0" style="border-collapse: collapse" width="100%" id="table3"> <tr> <td align="center" colspan="5" bordercolor="#FF6666" style="border-style: solid; border-width: 1px"> <p align="left"> <b> <span style="font-family:Arial;color:black"><font size="2">For Fall 2</font></span><font size="2"><font face="Arial"><span style="font-family: ArialMT; color: black">0</span></font><span style="font-family:Arial;color:black">0</span><font face="Arial"><span style="font-family: ArialMT; color: black">7</span></font><span style="font-family: Arial;color:black">, each team may block out up to </span></font> <span style="font-family:Arial;color:black"><font size="2">6 weekend days for tournaments and/or any other conflict. A weekend tournament will be considered 2 days worth of blackout dates.</font></span></b></td> </tr> <tr> <td align="center" bgcolor="#FF6666" style="border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666" colspan="5"><b> <font face="Arial" size="2" color="#FFFFFF">WYSA Sanctioned Tournaments </font> <font face="Arial" size="1" color="#FFFFFF">(for reference only)</font></b></td> </tr> <tr> <td align="center" width="185" valign="top" style="border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666"> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">Saturday,</font></p> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">September 8</font></td> <td align="center" width="15" valign="top" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666"> <input type=checkbox name=Sept8 onClick="countChoices(this)" value="X"></td> <td align="center" valign="top" style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666"> <p style="margin-top: 0; margin-bottom: 0"><font face="Arial" size="2">Tournament 1</font></td> <td align="center" width="15" valign="top" style="border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666"> <input type=checkbox name=Sept9 onClick="countChoices(this)" value="X"></td> <td align="center" width="185" valign="top" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666"> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">Sunday,</font></p> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">September 9</font></td> </tr> <tr> <td align="center" width="185" valign="top" style="border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666" bgcolor="#CCCCCC"> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">Saturday,</font></p> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">September 15</font></td> <td align="center" width="15" valign="top" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666" bgcolor="#CCCCCC"> <input type=checkbox name=Sept15 onClick="countChoices(this)" value="X"></td> <td align="center" valign="top" style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666" bgcolor="#CCCCCC"> <p style="margin-top: 0; margin-bottom: 0"><font face="Arial" size="2"> Tournament 2</font></td> <td align="center" width="15" valign="top" style="border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666" bgcolor="#CCCCCC"> <input type=checkbox name=Sept16 onClick="countChoices(this)" value="X"></td> <td align="center" width="185" valign="top" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666" bgcolor="#CCCCCC"> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">Sunday,</font></p> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">September 16</font></td> </tr> <tr> <td align="center" width="185" valign="top" style="border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666"> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">Saturday,</font></p> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">September 22</font></td> <td align="center" width="15" valign="top" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666"> <input type=checkbox name=Sept22 onClick="countChoices(this)" value="X"></td> <td align="center" valign="top" style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666"> <p style="margin-top: 0; margin-bottom: 0"><font face="Arial" size="2"> Tournament 3</font></td> <td align="center" width="15" valign="top" style="border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666"> <input type=checkbox name=Sept23 onClick="countChoices(this)" value="X"></td> <td align="center" width="185" valign="top" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666"> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">Sunday,</font></p> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">September 23</font></td> </tr> <tr> <td align="center" width="185" valign="top" style="border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666" bgcolor="#CCCCCC"> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">Saturday,</font></p> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">September 29</font></td> <td align="center" width="15" valign="top" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666" bgcolor="#CCCCCC"> <input type=checkbox name=Sept29 onClick="countChoices(this)" value="X"></td> <td align="center" valign="top" style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666" bgcolor="#CCCCCC"> <p style="margin-top: 0; margin-bottom: 0"><font face="Arial" size="2"> Tournament 4</font></td> <td align="center" width="15" valign="top" style="border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666" bgcolor="#CCCCCC"> <input type=checkbox name=Sept30 onClick="countChoices(this)" value="X"></td> <td align="center" width="185" valign="top" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666" bgcolor="#CCCCCC"> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">Sunday,</font></p> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">September 30</font></td> </tr> <tr> <td align="center" width="185" valign="top" style="border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666"> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">Saturday,</font></p> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">October 6</font></td> <td align="center" width="15" valign="top" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666"> <input type=checkbox name=Oct6 onClick="countChoices(this)" value="X"></td> <td align="center" valign="top" style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666"> <p style="margin-top: 0; margin-bottom: 0"><font face="Arial" size="2"> Tournament 5</font></td> <td align="center" width="15" valign="top" style="border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666"> <input type=checkbox name=Oct7 onClick="countChoices(this)" value="X"></td> <td align="center" width="185" valign="top" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666"> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">Sunday,</font></p> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">October 7</font></td> </tr> <tr> <td align="center" width="185" valign="top" style="border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666" bgcolor="#CCCCCC"> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">Saturday,</font></p> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">October 13</font></td> <td align="center" width="15" valign="top" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666" bgcolor="#CCCCCC"> <input type=checkbox name=Oct13 onClick="countChoices(this)" value="X"></td> <td align="center" valign="top" style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666" bgcolor="#CCCCCC"> <p style="margin-top: 0; margin-bottom: 0"><font face="Arial" size="2"> Tournament 6</font></td> <td align="center" width="15" valign="top" style="border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666" bgcolor="#CCCCCC"> <input type=checkbox name=Oct14 onClick="countChoices(this)" value="X"></td> <td align="center" width="185" valign="top" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666" bgcolor="#CCCCCC"> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">Sunday,</font></p> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">October 14</font></td> </tr> <tr> <td align="center" width="185" valign="top" style="border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666"> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">Saturday,</font></p> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">October 20</font></td> <td align="center" width="15" valign="top" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666"> <input type=checkbox name=Oct20 onClick="countChoices(this)" value="X"></td> <td align="center" valign="top" style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666"> <p style="margin-top: 0; margin-bottom: 0"><font face="Arial" size="2"> Tournament 7</font></td> <td align="center" width="15" valign="top" style="border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666"> <input type=checkbox name=Oct21 onClick="countChoices(this)" value="X"></td> <td align="center" width="185" valign="top" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666"> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">Sunday,</font></p> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">October 21</font></td> </tr> <tr> <td align="center" width="185" valign="top" style="border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666" bgcolor="#CCCCCC"> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">Saturday,</font></p> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">October 27</font></td> <td align="center" width="15" valign="top" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666" bgcolor="#CCCCCC"> <input type=checkbox name=Oct27 onClick="countChoices(this)" value="X"></td> <td align="center" valign="top" style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666" bgcolor="#CCCCCC"> <p style="margin-top: 0; margin-bottom: 0"><font face="Arial" size="2"> Tournament 8</font></td> <td align="center" width="15" valign="top" style="border-left-style: solid; border-left-width: 1px; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666" bgcolor="#CCCCCC"> <input type=checkbox name=Oct28 onClick="countChoices(this)" value="X"></td> <td align="center" width="185" valign="top" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666" bgcolor="#CCCCCC"> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">Sunday,</font></p> <p style="margin-top: 0; margin-bottom: 0"> <font size="2" face="Arial" color="#1B179F">October 28</font></td> </tr> <tr> <td align="center" valign="top" style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#FF6666" colspan="5" bgcolor="#FFFF00"> <p align="left"><span style="COLOR: black; FONT-FAMILY: Arial"> <font size="2">* Please plan to play on all weekend dates not checked on the above list.</font></span></td> </tr> </table> </td> </tr> <tr> <td height="30" width="1200" bordercolor="#000000" style="border-left: 1px solid #000066; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: none; border-bottom-width: medium" colspan="2" bgcolor="#4c74b1"> <b> <font size="4" face="Arial" color="#FFFFFF">NOTE:</font></b></td> </tr><tr> <td height="30" width="1200" bordercolor="#000000" style="border-left: 1px solid #000066; border-right-style: solid; border-right-width: 1px; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" colspan="2"> <p align="left"> <span style="font-family:Arial;color:red"><font size="2">The league will not allow any game changes after June 15, 2007 (per league rule stated below). Please plan to play on all weekend dates <u>not</u> included on your block-out list (above).</font></span></p> <p class="MsoNormal" style="margin-right:-12.0pt"> <span style="font-family:Arial"><font size="2"> </font></span><u><span style="font-family:Arial"><font size="2">League Rule #5</font></span></u><span style="font-family: Arial"><font size="2"> Game Changes </font> </span></p> <p class="p1" style="margin:0in;margin-bottom:.0001pt"> <span style="font-family:Arial"><font size="2">All games are to be played at the scheduled place and time. Our League will not approve any game changes. This means that on the scheduled game date, a score for that game must be reported or each team will be charged with a forfeit of the game. </font> <i> <font size="2">Inclement weather is the only approved reason for game rescheduling. * Participation in additional tournaments (tournaments not given on Registration Form or Conflict Form) is not acceptable for League Game(s) change. These league games will result in a forfeit and fines will be accessed, if team does not show.</font></i></span></p> </td> </tr><tr> <td height="30" width="1199" bordercolor="#000000" style="border-left:1px solid #000066; border-right-style:solid; border-right-width:1px; border-top-style:none; border-top-width:medium; border-bottom-style:none; border-bottom-width:medium" colspan="2"> <font face="Arial"><input type=checkbox name='Rules' value="Yes"><font size="2"> </font> </font> <b> <font size="2" face="Arial"> </font><font color="#0000FF" size="4" face="Arial">*</font></b><font size="2" face="Arial"> I have read & understand the Our League policy regarding Game Changes.</font></td> </tr><tr> <td height="30" width="348" bordercolor="#000000" style="border-left:1px solid #000066; border-right-style:none; border-right-width:medium; border-top-style:none; border-top-width:medium; border-bottom-style:none; border-bottom-width:medium"> <font face="Arial" size="2">Person completing form:</font></td> <td height="30" width="852" bordercolor="#000000" style="border-right:1px solid #000066; border-left-style:none; border-left-width:medium; border-top-style:none; border-top-width:medium; border-bottom-style:none; border-bottom-width:medium"> <font face="Verdana"><font face="Arial"><input type=text name='Signed' size=30></font><b><font size="2" face="Arial"> </font> <font color="#0000FF" size="4" face="Arial">*</font></b></td></tr><tr> <td height="30" width="348" bordercolor="#000000" style="border-left:1px solid #000066; border-right-style:none; border-right-width:medium; border-top-style:none; border-top-width:medium; border-bottom-style:none; border-bottom-width:medium"> <font face="Arial" size="2">Person's Duties with above mentions team:</td> <td height="30" width="852" bordercolor="#000000" style="border-right:1px solid #000066; border-left-style:none; border-left-width:medium; border-top-style:none; border-top-width:medium; border-bottom-style:none; border-bottom-width:medium"> <font face="Verdana"><font face="Arial"><input type=text name='Duties' size=20></font><b><font size="2" face="Arial"> </font> <font color="#0000FF" size="4" face="Arial">*</font></b></td></tr><tr> <td height="30" width="348" bordercolor="#000000" style="border-left:1px solid #000066; border-right-style:none; border-right-width:medium; border-top-style:none; border-top-width:medium; border-bottom-style:none; border-bottom-width:medium"> <font face="Arial" size="2">Contact Phone (###-###-###):</td> <td height="30" width="852" bordercolor="#000000" style="border-right:1px solid #000066; border-left-style:none; border-left-width:medium; border-top-style:none; border-top-width:medium; border-bottom-style:none; border-bottom-width:medium"> <font face="Verdana"><font face="Arial"><input type=text name='ContactPhone' size=10></font><b><font size="2" face="Arial"> </font> <font color="#0000FF" size="4" face="Arial">*</font></b></td></tr><tr> <td height="30" width="348" bordercolor="#000000" style="border-left:1px solid #000066; border-right-style:none; border-right-width:medium; border-top-style:none; border-top-width:medium"> <font face="Arial" size="2">email:</td> <td height="30" width="852" bordercolor="#000000" style="border-right:1px solid #000066; border-left-style:none; border-left-width:medium; border-top-style:none; border-top-width:medium"> <font face="Verdana"><font face="Arial"><input type=text name='email' size=30></font></font><b><font size="2" face="Arial"> </font> <font color="#0000FF" size="4" face="Arial">*</font></b></td></tr><tr> <td colspan="2" height="25" width="100%" style="border-left:medium none #000066; border-right:medium none #000066; border-bottom:medium none #000066; border-top-style:solid; border-top-width:1px" bordercolor="#000000"> <p align="center" style="margin-bottom: 0"> <p align="center"> <font face="Arial" size="2"><input type=submit value='Submit'> <input type=reset value='Reset'></font></td></tr> </table></form>\n"; } closetable(); echo "</td>\n"; </body> </html> Quote Link to comment Share on other sites More sharing options...
kemper Posted November 13, 2007 Author Share Posted November 13, 2007 No change there! Quote Link to comment Share on other sites More sharing options...
bwochinski Posted November 13, 2007 Share Posted November 13, 2007 You need to end your PHP block... <?php require_once "maincore.php"; require_once "subheader.php"; require_once "side_left.php"; if (!checkrights("FR")) fallback("../index.php"); // Add Following line... ?> <SCRIPT LANGUAGE='JavaScript'> <!-- Begin function countChoices(obj) { max = 6; // max. number allowed at a time You can then open another PHP block at the end of the page before the "echo" at the bottom... Quote Link to comment Share on other sites More sharing options...
kemper Posted November 13, 2007 Author Share Posted November 13, 2007 OK. It somewhat worked. The problem now is that formatting was screwed up. The subheader stretched only across top of side_left and main text area. The right side aligned all the way to the top of the page instead to the subheader. Quote Link to comment Share on other sites More sharing options...
kemper Posted November 13, 2007 Author Share Posted November 13, 2007 Opening another PHP block at the end of the page before the "echo" at the bottom doesn't seem to be the complete solution because I also get: opentable (Fall 2007/Spring 2008 Registration); //echo ' above my form and: \n"; } closetable(); at the end. What do I do? Quote Link to comment Share on other sites More sharing options...
bwochinski Posted November 13, 2007 Share Posted November 13, 2007 Yeah I see now you've got a couple other bits of PHP in there... You should just be able to add more <?php .... ?> blocks around any other area where you use php. Quote Link to comment Share on other sites More sharing options...
kemper Posted November 13, 2007 Author Share Posted November 13, 2007 So... Should I just separate out the Javascript? Like: <?php require_once "maincore.php"; require_once "subheader.php"; require_once "side_left.php"; if (!checkrights("FR")) fallback("../index.php"); ?> <SCRIPT LANGUAGE='JavaScript'> <!-- Begin function countChoices(obj) { max = 6; // max. number allowed at a time Sept8 = obj.form.Sept8.checked; Sept9 = obj.form.Sept9.checked; Sept15 = obj.form.Sept15.checked; Sept16 = obj.form.Sept16.checked; Sept22 = obj.form.Sept22.checked; Sept23 = obj.form.Sept23.checked; Sept29 = obj.form.Sept29.checked; Sept30 = obj.form.Sept30.checked; Oct6 = obj.form.Oct6.checked; Oct7 = obj.form.Oct7.checked; Oct13 = obj.form.Oct13.checked; Oct14 = obj.form.Oct14.checked; Oct20 = obj.form.Oct20.checked; Oct21 = obj.form.Oct21.checked; Oct27 = obj.form.Oct27.checked; Oct28 = obj.form.Oct28.checked; count = (Sept8 ? 1 : 0) + (Sept9 ? 1 : 0) + (Sept15 ? 1 : 0) + (Sept16 ? 1 : 0) + (Sept22 ? 1 : 0) + (Sept23 ? 1 : 0) + (Sept29 ? 1 : 0) + (Sept30 ? 1 : 0) + (Oct6 ? 1 : 0) + (Oct7 ? 1 : 0) + (Oct13 ? 1 : 0) + (Oct14 ? 1 : 0) + (Oct20 ? 1 : 0) + (Oct21 ? 1 : 0) + (Oct27 ? 1 : 0) + (Oct28 ? 1 : 0); if (count > max) { alert('Oops! You can only choose up to ' + max + ' conflicts! \nUncheck a date if you want to pick another.'); obj.checked = false; } } // End --> </script> <?php opentable (Fall 2007/Spring 2008 Registration); ... This is not working. I am getting: Parse error: syntax error, unexpected T_LNUMBER in /home/myusername/public_html/mywebsite/f2007reg.php on line 41 Quote Link to comment 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.