Hi -
Chronoforms has been working great, but today I put some code into the form code area and when I went to save it (or apply) chronoforms manager not only didn't save but redirected me to my joomla page that I was entering into the form code entry. I added this code to the form entry
<?php
$user =& JFactory::getUser();
$db =& JFactory::getDBO();
$query = "SELECT count(*)
FROM `jos_chronoforms_app_code_company`
WHERE `cf_user_id` = $db->Quote($user->id) ";
$db->setQuery($query);
$count = $db->loadResult();
If (! $count) {
header("Location: http://www.appcodestore.com/index.php?option=com_content&view=article&id=102");
exit;
}
?>
When I attempted to save this information the save does not occur and chronoforms sends me to the header location in the code above. For now I am manually changing the database record, but how can I get chronoforms to stop doing this and just save the form?
Thanks
Chronoforms has been working great, but today I put some code into the form code area and when I went to save it (or apply) chronoforms manager not only didn't save but redirected me to my joomla page that I was entering into the form code entry. I added this code to the form entry
<?php
$user =& JFactory::getUser();
$db =& JFactory::getDBO();
$query = "SELECT count(*)
FROM `jos_chronoforms_app_code_company`
WHERE `cf_user_id` = $db->Quote($user->id) ";
$db->setQuery($query);
$count = $db->loadResult();
If (! $count) {
header("Location: http://www.appcodestore.com/index.php?option=com_content&view=article&id=102");
exit;
}
?>
When I attempted to save this information the save does not occur and chronoforms sends me to the header location in the code above. For now I am manually changing the database record, but how can I get chronoforms to stop doing this and just save the form?
Thanks