Okay.. So in a submission form, I have a Multiselect Box to choose the category for the image. When I press submit, all of the information is made into variables and insered into the MySQL Databse.
My problem is that I can not get the Array from the MultiSelect box to be inserted correcty. Instead of getting results like "Humor, Other" Like I want, Im getting "Array, "
Heres some snippets of the code:
foreach ($_POST['sigcat'] as $sigcat) { $sigcat = $_POST['sigcat'].", "; }
$sigcat = mysql_real_escape_string($sigcat);
// Check to see if "Select One" Is Selected
if (!is_array($_POST['sigcat']) || sizeof($_POST['sigcat']) < 1)
{
die('You must select at least one category!');
}
<tr bgcolor="#CCCCCC">
<td height="25"><p class="submit">Category</p></td>
<td><p class="submitnote">Choose a Category</p></td>
<td><select multiple name ='sigcat[]' id="sigcat">
<option value='Pretty'>Pretty Ones</option>
<option value='Couples'>Couple Sigs</option>
<option value='Humor'>Humorous</option>
<option value='Simple'>Simple</option>
<option value='Special Effect'>Special Effect</option>
<option value='Movie Clips'>Movie Clips Included</option>
<option selected="selected" value='Other'>Other</option>
</select></td>
</tr>