Hi Folks!
Ok i'm using Mambo but managed to get chronoforms (j 1.0) version working fine...
What I wanted to do was have a very simple form... basically its for recording which users have read a document and if they agree/disagree with the content... I had a simple dropdown for them to select their username but since then they want to record the username automatically 🙄
So I had my form setup and it was working fine under the username...they then wanted me to record the users 'name' as the users had chosen their usernames themselves and they didnt make alot on sense...
SO i tried to re-work the form (i didnt back it up 😢 ) and now i have broken it and cant even get the username out now 🤣
In my form code i have added
And here is my auto generated code:
I have selected the profile plugin and here are my field choices:
Can sonmeone PLEASE help me, am slowly going insane trying to figure this one out.. I searched the forum but am still having issues
Ok i'm using Mambo but managed to get chronoforms (j 1.0) version working fine...
What I wanted to do was have a very simple form... basically its for recording which users have read a document and if they agree/disagree with the content... I had a simple dropdown for them to select their username but since then they want to record the username automatically 🙄
So I had my form setup and it was working fine under the username...they then wanted me to record the users 'name' as the users had chosen their usernames themselves and they didnt make alot on sense...
SO i tried to re-work the form (i didnt back it up 😢 ) and now i have broken it and cant even get the username out now 🤣
In my form code i have added
<input type="hidden" name="name" value="<?php echo $my->name; ?>" />
And here is my auto generated code:
<?php
global $database;
global $my;
srand((double)microtime()*10000);
$inum = "I" . substr(base64_encode(md5(rand())), 0, 16);
$database->setQuery( "INSERT INTO #__chronoforms_8 VALUES (
'' , '".$inum."', '". date('Y-m-d')." - ".date("H:i:s")."', '".$_SERVER['REMOTE_ADDR']."' , '".mosGetParam($_POST,'date','')."' , '".mosGetParam
($_POST,'name','')."' , '".mosGetParam
($_POST,'UnderstandAgree','')."' , '".mosGetParam
($_POST,'NoReasonWhy','')."');" );
if (!$database->query()) {
echo "<script> alert('".$database->getErrorMsg()."'); window.history.go(-1);
</script>
";
}
?>
I have selected the profile plugin and here are my field choices:
Table name: mos_users
REQUEST Parameter name: name
Target field name: name
Can sonmeone PLEASE help me, am slowly going insane trying to figure this one out.. I searched the forum but am still having issues