how to post value of 3 input fields into database

schlupi

New Member
I have been facing this problem for the last 2 days.I am creating sets of 2 text boxes and 1 select box. The user fills this in, and if he wants, he creates another set of them by using this script\[code\]<div id="div"></div><p>&nbsp;</p><div class="_25"> <p> <input type="button" name="button" class="button red" id="button" value="http://stackoverflow.com/questions/15907716/Add" onclick="generateRow() "/> </a> </p></div><input type='button' value='http://stackoverflow.com/questions/15907716/Remove Button' id='removeButton'><p>&nbsp;</p><p>&nbsp;</p></div><input type="submit" class="button blue" id="button" value="http://stackoverflow.com/questions/15907716/Register" /> <script> var counter=1; function generateRow() { var count="<font color='red'>"+counter+"</font>"; var temp =" <p>&nbsp;&nbsp;&nbsp;&nbsp;<div class='_25'><input type='textbox' id='textbox' name='stop["+counter+"]' placeholder='Stop Name'></input></div>&nbsp;&nbsp;&nbsp;<div class='_25'><input type='textbox' id='textbox' name='timing["+counter+"]' placeholder='Timing'></input></div>&nbsp;<div class='_25'><select id='ampm' name='ampm["+counter+"]'><option>a.m</option><option>p.m</option></select> </div>";var newdiv = document.createElement('div');newdiv.innerHTML = temp + count;var yourDiv = document.getElementById('div');yourDiv.appendChild(newdiv);counter++; } </script>\[/code\]now can anyone please give me function code so insert sets of these 3 values into db
 
Top