Canvas Theme Contact page issue

5 replies · opened Dec 10, 2016

SSemicolon WebSTAFFDec 10, 2016

Hello,

We have just checked out your Website and the issue is that the Contact Form's action Attribute value does not exist. The action attribute of your Form should point to action="include/sendemail.php" so that your Form can be processed properly and sent to your Email.

Hope this Helps!

Do let us know if we can help you with anything else or if you find any further issues with Canvas.

TtausifbaduDec 19, 2016

Hi,

My website is build on django framework. Hence not be able to use action=”include/sendemail.php”.
Any other suggestion?

Thanks,
Tausif

SSemicolon WebSTAFFDec 23, 2016

Hello,

It is required to have the action="include/sendemail.php" Attribute added to the Form so that it works correctly.

Additionally, please find the following code in the js/functions.js File inside the contactForm: function() Function Block:

$(form).ajaxSubmit({
	target: elementResult,
	dataType: 'json',

and replace it with:

$(form).ajaxSubmit({
	target: elementResult,
	dataType: 'json',
	url: 'include/sendemail.php',
	type: 'post',

This should definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

TtausifbaduDec 24, 2016

We did understand the solution you have mentioned. However, kindly note that our website is based on Python-Django framework and is hosted on Python Anywhere (which allows only for Python programming language). As a result, we cannot use the php solution you have mentioned above.

Kindly suggest a solution which will work with Python-Django.

We were able to successfully install and use every other Canvas theme module relevant to us and host it on the Python-Django framework (http://tradehunter.in).
Please help.

Thank You
TradeHunter

SSemicolon WebSTAFFDec 25, 2016

Hello,

The Solution we have suggested above is not a PHP Solution but a JS Solution. Unfortunately, if you are looking to not use the include/sendemail.php entirely, then we are afraid the Form Functionality will not work since PHP is required to process the Form.

Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard