Hi there
Is it possible, to use a form on another domain and POST the data to the joomla site? At the moment, I get an "0 - SQL" Error.
Any hints are welcome, thanks!
Is it possible, to use a form on another domain and POST the data to the joomla site? At the moment, I get an "0 - SQL" Error.
Any hints are welcome, thanks!
Hi fcamichel,
The answer is Yes - you can post to a form event url and do something with the data that is received.
Is the other domain using ChronoForms and Joomla! too?
How are you trying to do this now? Do you know what is giving the error?
Bob
The answer is Yes - you can post to a form event url and do something with the data that is received.
Is the other domain using ChronoForms and Joomla! too?
How are you trying to do this now? Do you know what is giving the error?
Bob
Hi Bob,
Thanks for your fast reply. At the moment, I grab the original form source code from the Joomla site and show it in my angularJS app. When a user has visited the Joomla site before, only then will this approach work. All other users see the error "0 - SQL=".
I don't know Joomla very well, what exactly do you mean by form event url?
Well, what is the problem? I assume, that Joomla only accept a POST request, if the user has a cookie of the site.
PS: The versions of the target site are Joomla: 3.4.4 and Chronoforms Version: 5.
Fabio
Thanks for your fast reply. At the moment, I grab the original form source code from the Joomla site and show it in my angularJS app. When a user has visited the Joomla site before, only then will this approach work. All other users see the error "0 - SQL=".
I don't know Joomla very well, what exactly do you mean by form event url?
Well, what is the problem? I assume, that Joomla only accept a POST request, if the user has a cookie of the site.
PS: The versions of the target site are Joomla: 3.4.4 and Chronoforms Version: 5.
Fabio
Hi Fabio,
I've no idea, If you are grabbing the Form HTML from a ChronoForm and using it elsewhere then it's just an HTML snippet like any other HTML. You are not using ChronoForms in any real sense.
If you are getting an error with 0 in it then it might be that something is checking the User ID which will be zero for a guest - but that's just a guess.
If you want to use a ChronoForm from a Joomla site in another site it will usually work in an iFrame - but add &tmpl=component to the URL so that you don't get the whole site template showing up.
Bob
I've no idea, If you are grabbing the Form HTML from a ChronoForm and using it elsewhere then it's just an HTML snippet like any other HTML. You are not using ChronoForms in any real sense.
If you are getting an error with 0 in it then it might be that something is checking the User ID which will be zero for a guest - but that's just a guess.
If you want to use a ChronoForm from a Joomla site in another site it will usually work in an iFrame - but add &tmpl=component to the URL so that you don't get the whole site template showing up.
Bob
A critical issue with displaying forms in iFrames is that PayPal will not display in iFrames. This is part of their security policy and there is no way to bypass this.
kind regards,
ivo
kind regards,
ivo
Hi there again 😀 ,
I found this site: http://www.itoctopus.com/0-sql-error-in-joomla
The sql=0 problem is caused of an empty query, which is send to the database. Could it be, that ChronoForms has similar problems, if there is a form post from a guest?
Any hints are highly welcome, thanks!
I found this site: http://www.itoctopus.com/0-sql-error-in-joomla
The sql=0 problem is caused of an empty query, which is send to the database. Could it be, that ChronoForms has similar problems, if there is a form post from a guest?
Any hints are highly welcome, thanks!
This topic is locked and no more replies can be posted.