How Insert Array String From One Input Html Form And Fetch Another Data From Them
<p>I have one input HTML form that I insert the values like below to it:</p>

<pre><code>&lt;input name="name" type="text" value="data1,data2,data3,..."&gt;
</code></pre>

<p>Then even data which insert to form has an ID in another table;</p>

<p>For example id of data1 is 1, id of data2 is 2,...</p>

<p>Now I take the value of them form like:</p>

<pre><code>$_POST['name']
</code></pre>

<p>So that I input data with ',' and then I can't use:</p>

<pre><code>implode (',',$_POST['name'])
</code></pre>

<ol>
<li><p>How can I fetch id from database for each data which input like top and store them in one variable like $name?</p></li>
<li><p>How can I insert the id's which is fetch from data1,data2,...to MySQL database as array Like id1,id2,...</p></li>
</ol>