Forums

replace contents after submit

canis 16 Oct, 2009
I inserted a form using the plugin.

Is it possible to replace the whole article by some content generated by a php script on submit?
GreyHead 16 Oct, 2009
Hi canis,

In theory yes I think you could but I've never tried it. You can create an article from a form using submit_content form that you can get from the downloads area here. You'd then need to set the article id to the id of the current article and keep your fingers crossed.

Bob
canis 16 Oct, 2009
Thankyou for the solution suggestion, but I think that will lead to a lot of trash, especially when expecting that multiple users use it at the same time.

That sounds as if it will be better to rewrite my php code to JavaScript and replace the contents of the <div>

BTW: How can I avoid that the form will be send?
GreyHead 16 Oct, 2009
Hi canis,

Sorry I don't understand your questions, can you say a bit more please.

Bob
This topic is locked and no more replies can be posted.