Radio Button

Home Forums Quform PHP Radio Button

This topic is: not resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7889
    Dennis25
    Participant

    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

    #7898
    Dennis25
    Participant

    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.

    • This reply was modified 10 years, 4 months ago by Dennis25.
    #7909
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy