database - What can/should I do to save the contents of my "contenteditable" table in PHP? -


so, start things i'm "newbie" @ php please don't discourage me. currently, have created form-type html consists of radio button text area/fields , "contenteditable" table let users input data such monitoring progress , acts spreadsheet.

i have inserted , saved rest of data in forms aside table input-types i've been googling issue week doesn't me since cannot find article related it. tips guys? don't wanna resort changing text-field type make work.

mytable code:

<div class="container">     <div class="panel panel-default">         <div class="panel-heading">implementation/migration plan</div>         <div class="panel-body">             <table class="table table-condensed" width="50">                 <thead>                     <tr>                         <th>activities</th>                         <th>duration</th>                         <th>responsible</th>                         <th>back-out procedure</th>                         <th>remarks</th>                     </tr>                 </thead>                 <tbody>                     <tr>                         <td contenteditable='true'></td>                         <td contenteditable='true'></td>                         <td contenteditable='true'></td>                         <td contenteditable='true'></td>                         <td contenteditable='true'></td>                     </tr>                      <tr>                         <td contenteditable='true'></td>                         <td contenteditable='true'></td>                         <td contenteditable='true'></td>                         <td contenteditable='true'></td>                         <td contenteditable='true'></td>                     </tr>                      <tr>                         <td contenteditable='true'></td>                         <td contenteditable='true'></td>                         <td contenteditable='true'></td>                         <td contenteditable='true'></td>                         <td contenteditable='true'></td>                     </tr>                      <tr>                         <td contenteditable='true'></td>                         <td contenteditable='true'></td>                         <td contenteditable='true'></td>                         <td contenteditable='true'></td>                         <td contenteditable='true'></td>                     </tr>                      <tr>                         <td contenteditable='true'></td>                         <td contenteditable='true'></td>                         <td contenteditable='true'></td>                         <td contenteditable='true'></td>                         <td contenteditable='true'></td>                     </tr>                 </div>             </table>         </tbody>     </div> </div> </div> 

any tips on how can save data being input in table?

table sample:

table picture sample

you have 2 options here think:

1 - if set on using contenteditable need fetch , submit data javascript.

2 - change html use form instead.

the resulting php won't change can submit data in same manner through either method.

personally recommend think why wish use contenteditable though end having work around fact it's not form in order data submitted.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -