Home › Forums › Quform PHP › Radio Button
- This topic has 2 replies, 2 voices, and was last updated 12 years ago by
Ally.
- AuthorPosts
- December 17, 2013 at 4:50 pm #7889
Dennis25
ParticipantHello, 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,
DennisDecember 18, 2013 at 4:37 pm #7898Dennis25
ParticipantUpdate:
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.
- This reply was modified 12 years ago by
Dennis25.
December 19, 2013 at 9:39 am #7909Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- This reply was modified 12 years ago by
- AuthorPosts
- You must be logged in to reply to this topic.
