i make a dynamic textbox through javascript now i want to post the data of all dynamically generated textboxes to php script and then insert into a table. how can i do this...
> var intTextBox=0;
>
> //FUNCTION TO ADD TEXT BOX ELEMENT
> function addElement() {
> intTextBox = intTextBox+1;
>
> var contentID = document.getElementById('content');
> var newTBDiv =document.createElement('div');
> newTBDiv.setAttribute('id','strText'+intTextBox);
> newTBDiv.innerHTML="Author : <input type='text' id='citingfield' name='"intTextBox"'/>";
> contentID.appendChild(newTBDiv);
> }
>
> //FUNCTION TO REMOVE TEXT BOX ELEMENT
> function removeElement() {
> if(intTextBox != 0)
> {
> var contentID = document.getElementById('content');
> contentID.removeChild(document.getElementById('strText'+intTextBox));
> intTextBox = intTextBox-1; } }
>
> <body>
>
> <form action="add_save.php" method="post" >
>
> <div id="content"></div> <p><a href="javascript:addElement();"
> >Add</a> <a href="javascript:removeElement();" >Remove</a></p>
>
> <input name="submit" type="submit" id=" " value="Submit">
> </from>