Problem on Line 9 and 13

joncbaile 10 Mar, 2010
I have problem when I submit the form to test it from front end of Website. After submitting the form it should take you back to the homepage, but instead it gives this code:

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/fumcwaxa/public_html/components/com_chronocontact/chronocontact.php(53) : eval()'d code on line 9

Fatal error: Call to a member function bind() on a non-object in /home/fumcwaxa/public_html/components/com_chronocontact/libraries/customcode.php(71) : eval()'d code on line 13


PLEASE HELP!!!!
GreyHead 10 Mar, 2010
Hi joncbaile,

You probably have a dash or space or some other special character in one of your input names - the error is a failure in the database table code that is usually caused by this.

Bob
joncbaile 25 Mar, 2010
So, I am new to php programming but how exactly should I go about solving this problem?
GreyHead 25 Mar, 2010
Hi joncbaile,

You need to start by looking at the names you've given your form inputs, and the form itself and making sure that that none of them have dashes or spaces or other special characters in them.

Bob
joncbaile 29 Mar, 2010
Okay so I understand you correctly I need to look through the Form HTML : (PHP) and find the div_class and label_class to find special characters? For instance is there a problem with this code:

<div class="form_item">
<div class="form_element cf_checkbox">
<label class="cf_label" style="display: none;">Time Row 3</label>
<div class="float_left">
<input value="9:30 - 10:00 pm" title="" class="radio" id="check26" name="check2[]" type="checkbox" />
<label for="check26" class="check_label">9:30 -10:00 pm</label>
<br />
<input value="11:30 - 12:00 am" title="" class="radio" id="check27" name="check2[]" type="checkbox" />
<label for="check27" class="check_label">11:30-12:00 p</label>
<br />
</div>
</div>
<div class="cfclear"> </div>
</div>
GreyHead 29 Mar, 2010
Hi joncbaile,

All that looks good,

Bob
joncbaile 30 Mar, 2010
Again, thanks for your prolonged help! Is there a way to quickly find the problem character without searching through a few hundred lines?
This topic is locked and no more replies can be posted.