Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to insert multiple option listbox choices into mysql database
    text
    copied!<p>I have a form with different input fields like text field, dropdowns, and a multiselect listbox. The multiselect listbox does not add to the database. Please help</p> <pre><code> &lt;form action = "A.php" method ="POST" enctype="multipart/form-data"&gt; &lt;fieldset&gt; &lt;p&gt;`Job Description: &lt;select name="DutiesDesc[]" size=5 multiple="multiple"&gt; &lt;option value="$Arow['TextF1']"&gt;&lt;?php echo $Arow['TextF1']?&gt;&lt;/option&gt; &lt;option value="$Arow['TextF2']"&gt;&lt;?php echo $Arow['TextF2']?&gt;&lt;/option&gt; &lt;option value="$Arow['TextF3']"&gt;&lt;?php echo $Arow['TextF3']?&gt;&lt;/option&gt; &lt;option value="$Arow['TextF4']"&gt;&lt;?php echo $Arow['TextF4']?&gt;&lt;/option&gt; &lt;option value="$Arow['TextF5']"&gt;&lt;?php echo $Arow['TextF5']?&gt;&lt;/option&gt; &lt;option value="$Arow['TextF6']"&gt;&lt;?php echo $Arow['TextF6']?&gt;&lt;/option&gt; &lt;option value="$Arow['TextF7']"&gt;&lt;?php echo $Arow['TextF7']?&gt;&lt;/option&gt; &lt;option value="$Arow['TextF8']"&gt;&lt;?php echo $Arow['TextF8']?&gt;&lt;/option&gt; &lt;option value="$Arow['TextF9']"&gt;&lt;?php echo $Arow['TextF9']?&gt;&lt;/option&gt; &lt;option value="$Arow['TextF10']"&gt;&lt;?php echo $Arow['TextF10']?&gt;&lt;/option&gt;` </code></pre> <p>The following part is A.php</p> <pre><code> //Check if selections were made if (isset($_POST['DutiesDesc'])) { $SkillsArray = $_POST['DutiesDesc']; foreach($SkillsArray as $key =&gt;$value ) { $Sentence = join(" ",$value); } } $StartDate = clean($_REQUEST['StartDate']); </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload