Quote from: BobRay at Sep 16, 2013, 02:46 AMYou might take a look at the formit2db extra. http://modx.com/extras/package/formit2db
Thanks I saw that package, and it doesn't seem to work, as the thread that is mentioned on the package ends with a issues, that I too am faced with.
My code
[[!FormIt?
&hooks=`spam,email,formit2db,redirect`
&preHooks=`db2formit`
&redirectTo=`10`
&validate=`emailaddress:required:email`
&spamEmailFields = `emailaddress`
&emailTpl=`ConfirmEmailWithLink`
&emailSubject=`Please Confirm Your Email Address`
&emailTo=`[[+emailaddress]]`
&emailReplyTo=`[email protected]`
&prefix=`modx_custom_`
&packagename=`emaillistsignup`
&tablename=`websignups`
]]
And the errors from the modx error logs are the same as the other users on the formit2DB thread.
[2013-09-16 15:09:59] (ERROR @ /index.php) Path specified for package emaillistsignup is not a valid or accessible directory: /home/itract/public_html/core/components/emaillistsignup/model/
[2013-09-16 15:10:00] (ERROR @ /index.php) Path specified for package emaillistsignup is not a valid or accessible directory: /home/itract/public_html/core/components/emaillistsignup/model/
[2013-09-16 15:10:00] (ERROR @ /index.php) No class specified for loadClass
[2013-09-16 15:10:01] (ERROR @ /index.php) Path specified for package emaillistsignup is not a valid or accessible directory: /home/itract/public_html/core/components/emaillistsignup/model/
I even created the folder emaillistsignup in the components subfolder. set perms to 777.. still nothing....
ah..kind of why I just wanted to write directly to the sql db... this is way more code and time, for such a simple task.