Multi Files upload and form is not working fine

3 replies · opened Dec 19, 2016

Bborjapintor88Dec 19, 2016

Hello i have changed the files as i see in the support forum but is not working.

Also i added a new input and when i recieve the email i dont see them.

And the last problem is when i click in send email i recieve the email but it show a code really strange.. like something went wrong (but the message is succesfull).

I atach the files.

the web is http://bachfestivalcanarias.com/dev/es/concurso.html

i have my includes in /dev/includes/sendemail.php

thanks

SSemicolon WebSTAFFDec 23, 2016

Hello,

We have tried checking out the URL you have provided but it does not work properly and redirect us to a Different URL. Can you please provide us with an Alternate Valid Live URL so that we can check this out further. 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.

SSemicolon WebSTAFFDec 25, 2016

Hello,

We have tried checking out your Website and the Page appears to be working correctly and giving us a Successful Message. However, the only issue we found was that the AJAX Functionality was not working because the Form needs to be enclosed inside the .contact-widget Container for it to work properly.

Additionally, please make sure that you use the Latest Versions of these files including the include/sendemail.php File to make sure everything works fine.

Adding Additional Fields to the Forms and include/sendemail.php File is Definitely Possible and there are 3 Steps to configure this in the include/sendemail.php File:

  1. Find the following code and duplicate it to add the New Field:
$name = isset( $_POST['template-contactform-name'] ) ? $_POST['template-contactform-name'] : '';

Example:

$newfield = isset( $_POST['template-contactform-newfield'] ) ? $_POST['template-contactform-newfield'] : '';

Make sure that the template-contactform-newfield is same as the Form Input’s name attribute in the HTML.

  1. Now, find the following code just a few lines below and duplicate it to add the New Field:
$name = isset($name) ? "Name: $name

" : '';

Example:

$newfield = isset($newfield) ? "New Field: $newfield

" : '';
  1. You now simply need to Add the New Field to the following code:
$body = "$name $email $phone $service $message $referrer";

Example:

$body = "$name $email $phone $newfield $service $message $referrer";

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.

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