Ok I am still having some troubles with this. I have made the suggested change but still nothing is working. I would greatly appreicate the help.
Here is the form, yes I am aware it's missing the ending </form? tag. It's further down on the page the form resides.
<FORM METHOD="POST" ACTION="?page=includes/submit">
<p><INPUT TYPE="checkbox" NAME="activities[Camping]"
VALUE="Camping"</font></span><font size="2"> Camping </font>
<INPUT TYPE="checkbox" NAME="activities[RVing]"
VALUE="RV's"</font></span><font size="2"> RVing </font>
<INPUT TYPE="checkbox" NAME="activities[Hiking]"
VALUE="Hiking"</font></span><font size="2"> Hiking </font>
<INPUT TYPE="checkbox" NAME="activities[Boating]"
VALUE="Boating"</font></span><font size="2"> Boating </font>
<INPUT TYPE="checkbox" NAME="activities[Fishing]"
VALUE="Fishing"</font></span><font size="2"> Fishing </font>
<INPUT TYPE="checkbox" NAME="activities[Hunting]"
VALUE="Hunting"</font></span><font size="2"> Hunting </font>
<INPUT TYPE="checkbox" NAME="activities[Wildlife]"
VALUE="Wildlife"</font></span><font size="2"> Wildlife Watching </font>
<INPUT TYPE="checkbox" NAME="activities[Picnic Areas/Playground]"
VALUE="picnic/playground"</font></span><font size="2"> Picnic Areas/Playground </font><INPUT TYPE="checkbox" NAME="activities[Geocaching]"
VALUE="geocaching"</font></span><font size="2"> Geocaching </font><INPUT TYPE="checkbox" NAME="activities[Other]"
VALUE="Other"</font></span><font size="2"> Other, please explain: </font><INPUT TYPE="text" NAME="activities" SIZE="19">
</font>
Here is the php
<?
include("dbinfo.inc.php");
$str_type = $_POST['type'];
$str_type = preg_replace("#\<.+?\>(.+?)\</.+?\>#is", "\\1", $str_type);
$str_name = $_POST['name'];
$str_name = preg_replace("#\<.+?\>(.+?)\</.+?\>#is", "\\1", $str_name);
$str_city = $_POST['city'];
$str_city = preg_replace("#\<.+?\>(.+?)\</.+?\>#is", "\\1", $str_city);
$str_activities = $_POST['activities'];
$str_activities = preg_replace("#\<.+?\>(.+?)\</.+?\>#is", "\\1", $str_activities);
$str_URL = $_POST['URL'];
$str_URL = preg_replace("#\<.+?\>(.+?)\</.+?\>#is", "\\1", $str_URL);
$str_description = $_POST['description'];
$str_description = preg_replace("#\<.+?\>(.+?)\</.+?\>#is", "\\1", $str_description);
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = mysql_query("INSERT INTO parks (type, name, city, activities, URL, description)
VALUES ('$str_type','$str_name','$str_city','$str_activities','$str_URL','$str_description')")or die (mysql_error());
mysql_close();
?>
Now everything is getting entered into the DB correctly with the exception of the vaules of each checkbox. I don't know if this is a PHP error or form error.
-Thanks in advance.