Ok I have no idea what is going on. First I think it's 255 char limit then I think it's escape chars. I honestly have no idea at this point and am grasping at straws.
Here;s the code for creating the form...
####################################
$output .= "<form enctype=multipart/form-data method=post action=pop3.php>";
if(empty($row['type'])){
$output .= "<b>NEW ENTRY</B>";
$output .= "<b>loc#:</b> 1<br>";
$output .= "<b>city:</b> bellevue<br>";
$output .= "<input type=hidden name=loc value=1>";
$output .= "<input type=hidden name=sec value=".$sec.">";
$output .= "<input type=hidden name=type value=".$type.">";
$output .= "<b>section:</b>".$sec."</br>";
$output .= "<b>type:</b>".$type."</br>";
}else{
$output .= "<b>loc#:</b> 1<br>";
$output .= "<b>city:</b> bellevue<br>";
$output .= "<input type=hidden name=sec_id value=".$row['sec_id'].">";
$output .= "<b>section:</b>".$sec."</br>";
$output .= "<b>type:</b>".$type."</br>";
}
$text=stripslashes($text);
$output .= "<b>text:</b><textarea name=text rows=30 cols=60>".$text."</textarea></br>";
$output .= "<input type=submit value=submit>";
$output .= "</form>";
#######################################
and here's the code for handling it...
#######################################
$sec_id = $HTTP_POST_VARS['sec_id'];
$loc = $HTTP_POST_VARS['loc'];
$sec = $HTTP_POST_VARS['sec'];
$type = $HTTP_POST_VARS['type'];
$text = $HTTP_POST_VARS['text'];
$text = mysql_escape_string(htmlspecialchars(stripslashes($text)));
include ("../mySQL.php");
$DB = new sql_driver;
$DB->connect();
if(empty($sec_id)){
$DB->query("insert into section values('','".$loc."','".$sec."','".$type."','".$text."');");
}else{
$DB->query("update section set text='".$text."' where sec_id=".$sec_id.";");
}
#######################################
Quite honestly, I'm stumped.