How to insert multiple textbox values in databse those are checked with checkbox PHP

Discussion in 'PHP' started by jack466453, Jul 4, 2012.

  1. #1
    Below is an explanation. exactly what I want insert values of textboxes(user inputs) in mysql database that dynamically generates when checkbox is checked

    On the submission form I have multiple checkboxs. when users click on checkbox a textbox appears next to it, where user inputs text. I want to insert the value of texbox in array and insert it in database with PHP-MYSQL. for example checkbox1 is index 0=>valueoftextbox1, checkbox2 is index 1=>value of texbox2

    How can I achieve this?
     
    jack466453, Jul 4, 2012 IP
  2. extraspecial

    extraspecial Member

    Messages:
    788
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    45
    #2
    First you need to create textbox fields on MySQL then you need to learn PHP If Else you can learn it on W3Schools...
     
    extraspecial, Jul 8, 2012 IP