Hi,
i installed ChronoForms on joomla 1.5
and start to create a form from test_form
i create a table too
but in mySql i have this 3 table:
conta_chrono_contact
conta_chrono_contact_plugins
conta_chronoforms_1 (whit record i need)
but when i submit my data nothing appear on my table...
Form Code
Auto Generated Code
i installed ChronoForms on joomla 1.5
and start to create a form from test_form
i create a table too
but in mySql i have this 3 table:
conta_chrono_contact
conta_chrono_contact_plugins
conta_chronoforms_1 (whit record i need)
but when i submit my data nothing appear on my table...
Form Code
Nome: <input name="name" value="" type="text"><br />
Cognome: <input name="cognome" id="cognome" value="" type="text"><br />
{imageverification}
<input name="submit" value="Submit" type="submit"><br />
Auto Generated Code
<?php
$database =& JFactory::getDBO();
srand((double)microtime()*10000);
$inum = "I" . substr(base64_encode(md5(rand())), 0, 16);
$database->setQuery( "INSERT INTO #__chronoforms_1 VALUES (
'' , '".$inum."','". date('Y-m-d')." - ".date("H:i:s")."', '".$_SERVER['REMOTE_ADDR']."' , '".JRequest::getVar('name','', 'post', 'string', '' )."' , '".JRequest::getVar('cognome','', 'post', 'string', '' )."' , '".JRequest::getVar('submit','', 'post', 'string', '' )."');" );
if (!$database->query()) {
echo "<script> alert('".$database->getErrorMsg()."'); window.history.go(-1); </script>
";
}
?>
all looks fine, if you didn't manage to fix this then get BETA 2, it has better DB handling!
This topic is locked and no more replies can be posted.