I've been searching around the forum and couldn't quite find sumthing close to what i want to do.. (maybe i'm blind) but could you help me out.
I have one form. A very simple and small form. What i want to do is first... insert the data into a table . The exact steps i took were
1) create form
2) create table for the form using the create table button
3) enable data storage
4) select the table i want to use.. and save
ALL DONE on this (but have not tested.. i believe you guys have debugged this part time and time again.. so i trust it will work perfectly) I like to do things on one go and test on one go as well.. i suppose thats one of my lazy traits😛
the second thing i want to do is....submit the contents of this form as a contents. Now this is where i don't know what to do.
what should i do & use to retrieve all values from the form and insert it into the jos_content table? (take note that all my form values will be only used in my contents TEXT)
I guess that breaks the question into 2 or 3 parts
Where to do it? since i do not send emails.. i think its not on the form code page... is it correct to use it on the autogenerate page?
If so.... how do i retrieve the values ? i saw something similiar at http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=4&t=11425&p=15971&hilit=sql#p15971 but my autogenerated code for the form db insert is no where near looking like that.
if my forms fields are text_2,text_3,text_12,text_8
should i use
and what should i use for the database connection since i assume its already connected (being used to submit into the form db) (i'd like to avoid defining another db connection)
Sorry for my lengthy explained question
I have one form. A very simple and small form. What i want to do is first... insert the data into a table . The exact steps i took were
1) create form
2) create table for the form using the create table button
3) enable data storage
4) select the table i want to use.. and save
ALL DONE on this (but have not tested.. i believe you guys have debugged this part time and time again.. so i trust it will work perfectly) I like to do things on one go and test on one go as well.. i suppose thats one of my lazy traits😛
the second thing i want to do is....submit the contents of this form as a contents. Now this is where i don't know what to do.
what should i do & use to retrieve all values from the form and insert it into the jos_content table? (take note that all my form values will be only used in my contents TEXT)
I guess that breaks the question into 2 or 3 parts
Where to do it? since i do not send emails.. i think its not on the form code page... is it correct to use it on the autogenerate page?
If so.... how do i retrieve the values ? i saw something similiar at http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=4&t=11425&p=15971&hilit=sql#p15971 but my autogenerated code for the form db insert is no where near looking like that.
if my forms fields are text_2,text_3,text_12,text_8
should i use
mosGetParam($_POST,'text_2','')
and what should i use for the database connection since i assume its already connected (being used to submit into the form db) (i'd like to avoid defining another db connection)
Sorry for my lengthy explained question