I am getting this error message on all my forms. It only appears on the front end when the form is opened.😟
Parse error: syntax error, unexpected '-', expecting '{' in /home/aroostek/www/www/components/com_chronocontact/chronocontact.php(41) : eval()'d code on line 3
I need these forms up immediately. Any help would be greatly apprecited.
Thanks,
Larry
Parse error: syntax error, unexpected '-', expecting '{' in /home/aroostek/www/www/components/com_chronocontact/chronocontact.php(41) : eval()'d code on line 3
I need these forms up immediately. Any help would be greatly apprecited.
Thanks,
Larry
Hi Larry,
Please paste the first half-dozen lines of your form-html code here - looks like there may be an error of some kind in line 3.
Bob
Please paste the first half-dozen lines of your form-html code here - looks like there may be an error of some kind in line 3.
Bob
Here is the complete code;
Hope this helps,
Thanks in advance,
Larry
<p align="left"><strong>Registration > Vendor Form</strong></p>
<p align="left">We are very excited that you are going to be part of this year's fair. It will be wonderful to learn about the new and exciting technology products and services being provided by your organization. (Campus Center will be open for setup as of 8:00am Friday, October 10, 2008) Vendor floor opens to public at 10:00am - 5:00pm Friday October 10, 2008</p>
<ul type="circle">
<li>
<p align="left">Fill out the registration form online </p>
</li>
<li>
<p align="left">Submit it electronically OR Print and mail, or FAX to (207) 768-9507 </p>
</li>
<li>
<p align="left">The cost for <strong>ONE</strong> vendor booth (<strong>8' by 8') </strong>is $25. A booth consists of a table with two or more chairs. </p>
</li>
<li>
<p align="left">Speakers receive a <strong>COMPLIMENTARY </strong>booth on the vendor floor. </p>
</li>
<li>
<p align="left">Please indicate if you have any <strong>special requirements</strong>, such as an internet connection. We will appreciate knowing in advance about your special requirements so that we can accordingly setup the floor space to best serve your needs. </p>
</li>
<li>
<p align="left">Payment is accepted either in advance or at the day of the fair, before the vendor space opens. If you choose to pay in advance, please mail your check or money order, payable to "UMPI - Technology Fair", to the following address: UMPI, Tech Fair 2008, 181 Main Street, Presque Isle, ME 04769 </p>
</li>
<li>
<p align="left">For further information contact Conferences and Special Programs at (207) 768-9502 </p>
</li>
<li>
<p align="left"><strong>Please call if you need special services, assistance or accommodation</strong> </p>
</li>
</ul>
<p align="left"><strong>* Required Fields</strong></p>
<table align="center" border="0" height="915" width="447">
<tbody>
<tr>
<td height="34" width="205">Name of Organization:<strong>*</strong></td>
<td height="34" width="383"><input name="Nameorg" size="33" id="Nameorg" maxlength="50" type="text"></td>
</tr>
<tr>
<td height="25" width="205">Contact Person:<strong>*</strong></td>
<td height="25" width="383"><input name="Contact" id="Contact" size="33" maxlength="30" type="text">
</td>
</tr>
<tr>
<td height="34" width="205">Street Address 1:<strong>*</strong></td>
<td height="34" width="383"><input name="Address1" id="Address1" size="33" maxlength="50" type="text">
</td>
</tr>
<tr>
<td height="25" width="205">Street Address 2:</td>
<td height="25" width="383"><input name="Address2" id="Address2" size="33" maxlength="50" type="text">
</td>
</tr>
<tr>
<td height="25" width="205">City:<strong>*</strong></td>
<td height="25" width="383"><input name="City" id="City" type="text">
</td>
</tr>
<tr>
<td height="25" width="205">State/Province:<strong>*</strong></td>
<td height="25" width="383"><input name="State" id="State" type="text">
</td>
</tr>
<tr>
<td height="25" width="205">Zip Code:<strong>*</strong></td>
<td height="25" width="383"><input name="PostalCode" id="PostalCode" type="text">
</td>
</tr>
<tr>
<td height="25" width="205">Phone:<strong>*</strong></td>
<td height="25" width="383"><input name="Phone" id="Phone" size="20" maxlength="20" type="text">
</td>
</tr>
<tr>
<td height="25" width="205">E-Mail:</td>
<td height="25" width="383"><input name="Eadd" id="Eadd" size="33" maxlength="50" type="text"></td>
</tr>
<tr>
<td height="16" width="205">Company Website:</td>
<td height="16" width="383"><input name="URL" id="URL" size="33" maxlength="100" type="text"></td>
</tr>
<tr>
<td colspan="2" height="21" width="594"><hr>
</td>
</tr>
<tr>
<td colspan="2" height="379" width="594"><p>How many booths do you require?*
<input name="Booths" id="Booths" size="10" maxlength="5" type="text">
</p>
<p> Please indicate additional needs below:</p>
<p><strong>Please let us know if you need any of the following:</strong></p>
<p>
<input name="Outlet" id="Outlet" value="checkbox" type="checkbox">
Outlet<br>
<input name="Internet" id="Internet" value="checkbox" type="checkbox">
Internet</p>
<p>
<input name="wired" id="wired" value="checkbox" type="checkbox">
Wired<br>
<input name="wireless" id="wireless" value="checkbox" type="checkbox">
Wireless</p>
<p>
<input name="adapter" id="adapter" type="text">
Adapter Address. <strong>For your internet connection. The Ethernet adapter address is needed prior to your arrival for configuration issues. Thank you in advance.</strong><br>
Note: Your Ethernet address is a 12 digit number that looks like: 00-50-04-9E-92-00. If you see a number that begins with 444 or 445, you haven’t selected your Ethernet card. Please call Marteen at 207-768-9626 if you need help in finding your adapter address.</p></td>
</tr>
<tr>
<td colspan="2" height="21" width="594"><hr>
</td>
</tr>
<tr>
<td colspan="2" height="179" width="594"><p>Comments or any other special needs:<br>
<textarea name="textarea" cols="34" rows="5"></textarea>
</p>
<p>
<input name="Submit Registration" id="Submit Registration" value="Send Registration" type="submit">
<input name="Submit2" value="Reset Form" type="reset">
</p></td>
</tr>
</tbody>
</table>
<p align="center">Technologies lurking just below the mainstream radar</p>
Hope this helps,
Thanks in advance,
Larry
Hi Larry,
do you have DB connection enabled ? or did you select a table to connect to ? this looks like a problem with the connection code because of bad field name at your form, try to check all your form fields names doesn't have any characters other than a-z and 0-9 and _ , also names should not start with numbers!
Regards
Max
do you have DB connection enabled ? or did you select a table to connect to ? this looks like a problem with the connection code because of bad field name at your form, try to check all your form fields names doesn't have any characters other than a-z and 0-9 and _ , also names should not start with numbers!
Regards
Max
Hi. Thanks for advice. I had the same problem. The solution was to label the INPUT NAME's with characters from 'a-z' 'A-z' '_'
For example
<tr>
<td><b>Logo design:</b></td>
<td><input type="checkbox" class="check" name="vytvorenie_loga" value="yes" /></td>
</tr>
<tr>
<td><b>Flash animation:</b></td>
<td><input type="checkbox" class="check" name="flash_animacie" value="yes" /></td>
</tr>
MySQL tables cannot contain other characters I think.
For example
<tr>
<td><b>Logo design:</b></td>
<td><input type="checkbox" class="check" name="vytvorenie_loga" value="yes" /></td>
</tr>
<tr>
<td><b>Flash animation:</b></td>
<td><input type="checkbox" class="check" name="flash_animacie" value="yes" /></td>
</tr>
MySQL tables cannot contain other characters I think.
Yes it was a naming problem, not a bug. You can move this to where it will do the most good.
Thanks for all the help it is greatly appreciated.
Larry
Thanks for all the help it is greatly appreciated.
Larry
Thanks guys for confirming the issue for everybody here!🙂
I am having the same issue:
Parse error: syntax error, unexpected '-', expecting ',' or ';' in /data/18/1/76/34/1565686/user/1686450/htdocs/components/com_chronocontact/chronocontact.php(48) : eval()'d code on line 22
Any idea?
Thanks,
Jason
Parse error: syntax error, unexpected '-', expecting ',' or ';' in /data/18/1/76/34/1565686/user/1686450/htdocs/components/com_chronocontact/chronocontact.php(48) : eval()'d code on line 22
<div class="form_item"><div class="form_element cf_text"><span class="cf_text">Please use this form to contact Casco Bay Home Improvement. We take your request for information serisouly and will do everything we can to respond in a timely fashion.</span></div><div class="clear">Â </div></div><div class="form_item"><div class="form_element cf_textbox"><label class="cf_label">First Name</label><input class="cf_inputbox required validate-alpha" maxlength="150" size="30" id="text_3" name="text_3" type="text"></div><div class="clear">Â </div></div><div class="form_item"><div class="form_element cf_textbox"><label class="cf_label">Last Name</label><input class="cf_inputbox required validate-alpha" maxlength="150" size="30" id="text_4" name="text_4" type="text"></div><div class="clear">Â </div></div><div class="form_item"><div class="form_element cf_textbox"><label class="cf_label">Address</label><input class="cf_inputbox" maxlength="150" size="30" id="text_6" name="text_6" type="text"></div><div class="clear">Â </div></div><div class="form_item"><div class="form_element cf_textbox"><label class="cf_label">Address cont.</label><input class="cf_inputbox" maxlength="150" size="30" id="text_7" name="text_7" type="text"></div><div class="clear">Â </div></div><div class="form_item"><div class="form_element cf_textbox"><label class="cf_label">Town</label><input class="cf_inputbox" maxlength="150" size="30" id="text_8" name="text_8" type="text"></div><div class="clear">Â </div></div><div class="form_item"><div class="form_element cf_textbox"><label class="cf_label">State</label><input class="cf_inputbox validate-alpha" maxlength="150" size="30" id="text_9" name="text_9" type="text"></div><div class="clear">Â </div></div><div class="form_item"><div class="form_element cf_textbox"><label class="cf_label">Zipcode</label><input class="cf_inputbox validate-number" maxlength="150" size="30" id="text_10" name="text_10" type="text"></div><div class="clear">Â </div></div><div class="form_item"><div class="form_element cf_textbox"><label class="cf_label">Telephone #</label><input class="cf_inputbox validate-number" maxlength="150" size="30" id="text_11" name="text_11" type="text"></div><div class="clear">Â </div></div><div class="form_item"><div class="form_element cf_textbox"><label class="cf_label">Email address</label><input class="cf_inputbox required validate-email" maxlength="150" size="30" id="text_12" name="text_12" type="text"></div><div class="clear">Â </div></div><div class="form_item"><div class="form_element cf_text"><span class="cf_text">Casco Bay Home Improvement does not share your personal private information with any other entity.</span></div><div class="clear">Â </div></div><div class="form_item"><div class="form_element cf_checkbox"><label class="cf_label">What type of home improvement project are you considering for your home?</label><div class="float_left"><input value="Windows" class="radio" id="Windows" name="Windows" type="checkbox"><label for="Windows" class="check_label">Windows</label><br><input value="Roofing" class="radio" id="Roofing" name="Roofing" type="checkbox"><label for="Roofing" class="check_label">Roofing</label><br><input value="Siding" class="radio" id="Siding" name="Siding" type="checkbox"><label for="Siding" class="check_label">Siding</label><br><input value="Decks" class="radio" id="Decks" name="Decks" type="checkbox"><label for="Decks" class="check_label">Decks</label><br><input value="Additions" class="radio" id="Additions" name="Additions" type="checkbox"><label for="Additions" class="check_label">Additions</label><br><input value="Garages" class="radio" id="Garages" name="Garages" type="checkbox"><label for="Garages" class="check_label">Garages</label><br><input value="Insulation" class="radio" id="Insulation" name="Insulation" type="checkbox"><label for="Insulation" class="check_label">Insulation</label><br><input value="Finished Basement" class="radio" id="Finished_Basement" name="Finished_Basement" type="checkbox"><label for="Finished_Basement" class="check_label">Finished Basement</label><br></div></div><div class="clear">Â </div></div><div class="form_item"><div class="form_element cf_textarea"><label class="cf_label">Are there any other home improvement projects that you are considering or need to have done that are not listed here?</label><textarea class="cf_inputbox" rows="8" id="text_16" cols="30" name="text_16"></textarea></div><div class="clear">Â </div></div><div class="form_item"><div class="form_element cf_radiobutton"><label class="cf_label">Would you like additiona information on financing your home improvement project?</label><div class="float_left"><input value="Yes" class="radio validate-one-required" id="Yes0" name="radio0" type="radio"><label for="Yes0" class="radio_label">Yes</label><br><input value="No" class="radio" id="No0" name="radio0" type="radio"><label for="No0" class="radio_label">No</label><br></div></div><div class="clear">Â </div></div><div class="form_item"><div class="form_element cf_textarea"><label class="cf_label">Please add any additional comments or questions here.</label><textarea class="cf_inputbox" rows="8" id="text_19" cols="30" name="text_19"></textarea></div><div class="clear">Â </div></div><div class="form_item"><div class="form_element cf_text"><span class="cf_text">We make every effort to respond to your inquiry in a timely fashion. You will receive a response quickly. If this is after hours, you will receive a response by the next business day. Thank you & have a great day.</span></div><div class="clear">Â </div></div><div class="form_item"><div class="form_element cf_captcha"><label class="cf_label">Please type in the characters that you see.</label><span>{imageverification}</span><a onclick="return false;" class="tooltiplink"><img src="components/com_chronocontact/css/images/tooltip.png" class="tooltipimg" width="16" border="0" height="16"></a><div class="tooltipdiv">Please type in the characters that you see. :: This helps us avoid spam.</div></div><div class="clear">Â </div></div><div class="form_item"><div class="form_element cf_button"><input value="Submit" name="undefined" type="submit"></div><div class="clear">Â </div></div>
Any idea?
Thanks,
Jason
Hi gocasco,
As Max said, this looks like a table connection issue. What table are you trying to connect to and what are the field/column names in the table?
Bob
As Max said, this looks like a table connection issue. What table are you trying to connect to and what are the field/column names in the table?
Bob
I am sure Bob is correct. It was a field name that I had a problem with. If I disconnected from the database, I know longer had the error. I fixed the field name and reconnected to the database and all works well.
I did notice you had a name in you code named "form_element cf_textbox" I noticed the space in it. Check your field names and makes sure there or no sapces in them.
Larry
I did notice you had a name in you code named "form_element cf_textbox" I noticed the space in it. Check your field names and makes sure there or no sapces in them.
Larry
This topic is locked and no more replies can be posted.