Hello, How I can edit a form to automatically save a content, direct with php?
For example,when I place this url: index.php/form?firstvalue=testv&secondvalue=testv2
I need to automatically get the vars, relate to fields and save, just using php.
I did that using this jquery in a custom form template:
jQuery(document).ready(function() {
JCck.Core.submit();
});
But I really need to do this using only php. I have a application that runs in another server and will send vars for a url like this one: http://myserver/index.php/form?firstvalue=testv&secondvalue=testv2
The problem is that the aplication will run php but it will not run any client-side code like javascript/jquery, it will not open any browser windows, it will only follow the code. (tested with a php form to send a email and it works well).
Which code or function I need to make it run?
Which seblod file can help me to find this function?
I found this one: components/com_cck/views/form/view.html.php But I am not sure if it gives me any light.