Ok, so I am making this 3 part form. Step 1 is a simple, 3 field form for name, email and phone, then the visitor is directed to a more detailed form where their name,email and phone is allready filled in.

In this second form, I have a checkbox array, and then that info is passed to the final verification form where once they click submit it is submitted to the database. Using implode, I have the selections comma separated, and filling the textfield ready to be posted to the database, but then I get a syntax error when trying to post. I placed the code below so any help would be sooooo appreciated.

---checkbox array---

Code:
       <input type="checkbox" name="mediaType[]" value="Facebook" /> Facebook<br />
       <input type="checkbox" name="mediaType[]" value="Twitter" /> Twitter<br />
       <input type="checkbox" name="mediaType[]" value="Wordpress" /> Wordpress<br />
       <input type="checkbox" name="mediaType[]" value="other" /> other<br />
Here is the final page which has the sql stuff and my implode statement

Code:
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
  $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}

if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "seoRFP")) {
  $insertSQL = sprintf("INSERT INTO ``seo-rfp`` (seoName, seoEmail, seoPhone, siteAge, socialMedia, mediaType, keyword1, keyword2, keyword3, keyword4, keyword5, keyword6, keyword7, keyword8) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                       GetSQLValueString($_POST['VSEOname'], "text"),
                       GetSQLValueString($_POST['VSEOemail'], "text"),
                       GetSQLValueString($_POST['VSEOphone'], "text"),
                       GetSQLValueString($_POST['VsiteLife'], "text"),
                       GetSQLValueString($_POST['VsocialMedia'], "text"),
                       GetSQLValueString($_POST['VmediaType'], "text"),
                       GetSQLValueString($_POST['Vkeyword1'], "text"),
                       GetSQLValueString($_POST['Vkeyword2'], "text"),
                       GetSQLValueString($_POST['Vkeyword3'], "text"),
                       GetSQLValueString($_POST['Vkeyword4'], "text"),
                       GetSQLValueString($_POST['Vkeyword5'], "text"),
                       GetSQLValueString($_POST['Vkeyword6'], "text"),
                       GetSQLValueString($_POST['Vkeyword7'], "text"),
                       GetSQLValueString($_POST['Vkeyword8'], "text"));

  mysql_select_db($database_connDB, $connDB);
  $Result1 = mysql_query($insertSQL, $connDB) or die(mysql_error());

  $insertGoTo = "rfp-autoreply.php";
  if (isset($_SERVER['QUERY_STRING'])) {
    $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
    $insertGoTo .= $_SERVER['QUERY_STRING'];
  }
  echo "<meta http-equiv=\"refresh\" content=\"0; url=$insertGoTo\">";
  exit;
}
$theMedia = implode(",",$_POST['mediaType']);
I am using a simple echo for the $theMedia in the text field value.

Code:
<?php echo $theMedia ?>