This topic is: not resolved
- This topic has 2 replies, 2 voices, and was last updated 11 years, 6 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Home › Forums › Quform PHP › Radio Button
Hello, I really love your contact form.
I installed your plugin and saved the data form to MySQL database and everything worked fine.
Then I added your Radio Buttons.
part of the process-form.php:
…
( $radioButton2 = new Quform_Element(‘radio_button2’, ‘Radio button 2’);
$radioButton2->addValidator(‘required’);
$form->addElement($radioButton2);
…
…$query .= “radio_button2 = ‘” . mysql_real_escape_string($form->getValue(‘radio_button2’)) . “‘;”;
Finally I get this error message:
“There was a problem. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘radio_button2 = ‘Yes” at line 1″
I have tried different things like INT instead of VARCHAR, but the values are not submitted. Can you help me please?
Best Regards,
Dennis
Update:
The transmission to the database is successful if only the radio button is in the “Build the query” line of the process.php.
When I added street or name for example…I get the “SQL syntax error message” again.
You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.