Simple Example of Check Box to update MySQL Field Needed

Discussion in 'Programming' started by woocha, Sep 21, 2007.

  1. #1
    I have an HTML Form the is to be filled out by a user...the Form already includes one radio button and one checkbox....this form is an emample form I grabbed from a sample website to use as a testing ground.

    When I tried editing the form by adding another checkbox, i couldn't get it to work at all......Can anyone please tell give me a very simple set of code( HTML & PHP ) to update a MySQL field. My goal is to have a user decide if he like Pepsi.

    So do you like Pepsi? checkbox for yes

    and that's it......then the php updates the MySQL value to 1 for yes otherwise leave as default 0 for no...


    Any help would be very much appreciated....

    Thank You
     
    woocha, Sep 21, 2007 IP