Hello,
It's possible that someone wrote about this, or that it's even inside some HOWTO, but I'm not a regular HOWTO reader (unfortunately) and similar applies for forums (except when in trouble).
I spent at least an hour looking for an error inside my form, and it came so far that I've been checking chronoforms code itself.
There was a field in my form called 203K, which, at a time, sounded perfectly reasonable. However, when I wanted to save form data in a DB table, there was a rather unpleasant error: syntax error at '$': T_VARIABLE expected (or something alike).
The error was due to creation of an object to be saved to DB... It's fields are generated automatically by chronoforms, and field names are the same as form fields. In php and all programming languages that I came by there is a rule saying that variables and constants have to start with a letter. Hence my error.
So, all this blabbering aside: allways start your form fields with a letter!
Best,
Dan
It's possible that someone wrote about this, or that it's even inside some HOWTO, but I'm not a regular HOWTO reader (unfortunately) and similar applies for forums (except when in trouble).
I spent at least an hour looking for an error inside my form, and it came so far that I've been checking chronoforms code itself.
There was a field in my form called 203K, which, at a time, sounded perfectly reasonable. However, when I wanted to save form data in a DB table, there was a rather unpleasant error: syntax error at '$': T_VARIABLE expected (or something alike).
The error was due to creation of an object to be saved to DB... It's fields are generated automatically by chronoforms, and field names are the same as form fields. In php and all programming languages that I came by there is a rule saying that variables and constants have to start with a letter. Hence my error.
So, all this blabbering aside: allways start your form fields with a letter!
Best,
Dan
This topic is locked and no more replies can be posted.
