Contact Form hangs after clicking send

6 replies · opened Oct 26, 2019

OosbaldwickOct 26, 2019

I have a contact form at http://www.osbaldwickandmurtonchurches.org.uk/new/ - see green email bar 2/3 way down page.

I cannot use php mailer as my host does not allow that so I have added the extre smtp code suggested in the documentation. The form contents are sent and received successfully but the form hangs after pressing send and the spinning wheel just keeps on spinning.

Please advise how to prevent this.

BR

Nick

SSemicolon WebSTAFFOct 27, 2019

Hello,

This issue is likely because you have not followed the Message Format available in the include/form.php File. Make sure your Success and Error Messages are in the following format:

echo '{ "alert": "success", "message": "Success Message!" }';

Also, make sure that every message (error or success) you return from the PHP File, is in the above format.

This should definitely fix the issue. Hope this Helps!

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

OosbaldwickOct 27, 2019

Apart from adding the extra smtp code as stated above, I have not made any other changes to include/form.php The Success and Error message are unchanged from the original form and look to be in the same format as you suggest.

I've attached the form.php

OosbaldwickOct 27, 2019

Ok form won't attach...

OosbaldwickOct 28, 2019

Please advise if I am supposed to change anything else on the form.php as requested above

OosbaldwickOct 29, 2019

Any update?

SSemicolon WebSTAFFOct 31, 2019

Hello,

Thanks for your Continued Patience!

As it appears that you are using SMTP Codes, there could be an issue with the Server Responses which might be causing this. Can you please paste the Codes here so that we can evaluate the issue and provide you with a fix shortly. 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