Hi one and all,
have been using chrono for a while now but only for form submissions to email addys, however, on one site it has now become a requirement to allow users (non of whom register) to submit articles to the site.
I've looked through the forum for answers to this but can't find a specific answer.
The form we currently have requests the following text fields, your group, your name, your email, article title, and article content, we also have a drop down box from which users select the category of the site they wish the article to go into and then we have 5 img upload fields.
My question is how do I edit this form so that on completion and submission the article and images are saved to the site (in unpublished mode) and we get an email to advise of the article submission.
I've had a look at the submitcontent download but i'm still not 100% sure what i need to be doing. The existing form code is below. Any and all help appreciated
Ian
[attachment=0]form.txt[/attachment]
have been using chrono for a while now but only for form submissions to email addys, however, on one site it has now become a requirement to allow users (non of whom register) to submit articles to the site.
I've looked through the forum for answers to this but can't find a specific answer.
The form we currently have requests the following text fields, your group, your name, your email, article title, and article content, we also have a drop down box from which users select the category of the site they wish the article to go into and then we have 5 img upload fields.
My question is how do I edit this form so that on completion and submission the article and images are saved to the site (in unpublished mode) and we get an email to advise of the article submission.
I've had a look at the submitcontent download but i'm still not 100% sure what i need to be doing. The existing form code is below. Any and all help appreciated
Ian
[attachment=0]form.txt[/attachment]
Hi Ian,
Please look at the submitcontent form "onsubmit code section" and the "DB connection" tab, this is how the data is going to the content table!
Regards
Max
Please look at the submitcontent form "onsubmit code section" and the "DB connection" tab, this is how the data is going to the content table!
Regards
Max
Hiya,
thanks for the reply. Actually spent a few hours playing last night and managed to get it to do what i wanted it to. Just need to find out how to add the images uploaded into the content upon submission now.
Iain
thanks for the reply. Actually spent a few hours playing last night and managed to get it to do what i wanted it to. Just need to find out how to add the images uploaded into the content upon submission now.
Iain
Hi Iain,
you may need to run the posted text through some PHP code with a str_replace function to insert the images, not easy and need to be planned based on your application!
Max
you may need to run the posted text through some PHP code with a str_replace function to insert the images, not easy and need to be planned based on your application!
Max
This topic is locked and no more replies can be posted.