Could it be that I have my php form code on the testdir.php page?
########################################################################################
## Form Code
$schema = loadSchema('dir_listings');
// save?
$errorsAndAlerts = '';
if (@$_REQUEST['save']) {
if ($errorsAndAlerts) {
if (!@$_REQUEST['title']) { $errorsAndAlerts .= "You must enter your listing name!<br/>\n"; }
if (!@$_REQUEST['state']) { $errorsAndAlerts .= "You must enter your state!<br/>\n"; }
if (!@$_REQUEST['city']) { $errorsAndAlerts .= "You must enter your city!<br/>\n"; }
if (!@$_REQUEST['zipcode']) { $errorsAndAlerts .= "You must enter your zip!<br/>\n"; }
if (!@$_REQUEST['address']) { $errorsAndAlerts .= "You must enter your address!<br/>\n"; }
if (!@$_REQUEST['summary']) { $errorsAndAlerts .= "You must choose a description!<br/>\n"; }
if (!@$_REQUEST['category']) { $errorsAndAlerts .= "You must select a category!<br/>\n"; }
}
// save!
if (!$errorsAndAlerts) {
mysqlStrictMode(false); // disable Mysql strict errors for when a field isn't defined below (can be caused when fields are added later)
require_once("../../cmsAdmin/lib/user_functions.php");
$record = array_slice_keys($_REQUEST, explode(', ', 'category, title, address, city, state, zipcode, summary'));
$record = array_merge($record, array(
'hidden' => 1,
'createdDate' => mysql_datetime(),
'createdByUserNum' => intval( @$CURRENT_USER['num'] ),
'updatedDate' => mysql_datetime(),
'updatedByUserNum' => intval( @$CURRENT_USER['num'] ),
'publishDate' => mysql_datetime(),
'date' => mysql_datetime(),
'reg_listing' => 1,
'url_link' => 0,
'neverRemove' => 1,
));
}
}
$_REQUEST['preSaveTempId'] = coalesce(@$_REQUEST['preSaveTempId'], uniqid());
?>
Could this be causing it?