I can't program a CUSTOM FORM, sendemail.php doesn't exist in my canvas version.

12 replies·opened Nov 5, 2019
E
erudicaoinvestimentosNov 5, 2019

Hello good afternoon. I'm having a problem developing my site forms. I checked the questions solved in this FAQ but none solved my problem. Unfortunately, template-contactform only offers the fields name, phone, email and etc. But I need a field to fill in something similar to the US SSN, address, neighborhood, city, state, and so on.

Other people have had the same problem in 2016 and asked in this FAQ how to solve the problem. However, in the 2019 version there is no "sendemail.php" in the "include /" folder. That's why I can't edit the fields I need.

I could use the "template-contactform-name" tools for the fields I need, but it's not correct and will generate problems in the future. So I need a solution: how to customize a form?

(Below you can check the page's Active URL. You will notice that it is in Portuguese because we are not American. But that won't be a problem reading the code.)

Thanks for the comprehension.

SITE FORM: https://erudicaoinvestimentos.com.br/mesa_proprietaria/pre-cadastro-mesa-proprietaria

E
erudicaoinvestimentosNov 5, 2019
<form class="row" id="template-contactform-email" action="include/form.php" method="post" enctype="multipart/form-data">
										<div class="form-process"></div>
										<div class="col-12 form-group">
											<label>Nome Completo (conforme documento oficial):</label>
											<input type="text" name="template-contactform-name" id="template-contactform-name" class="form-control required" value="" placeholder="Coloque o seu nome completo">
										</div>
										<div class="col-6 form-group">
											<label>CPF:</label>
											<input type="text" name="cpf" id="cpf" class="form-control required" value="" placeholder="Coloque o seu CPF">
										</div>
										<div class="col-6 col_last form-group">
											<label>RG:</label>
											<input type="text" name="rg" id="rg" class="form-control required" value="" placeholder="Coloque o seu RG">
										</div>
										<div class="col-12 form-group">
											<label>Email:</label>
											<input type="email" name="template-contactform-email" id="template-contactform-email" class="form-control required" value="" placeholder="Coloque o seu Email">
										</div>
										<div class="col-md-6 form-group">
											<label>Gênero:</label>
											<div class="btn-group btn-group-toggle d-flex" data-toggle="buttons">
												<label class="btn btn-outline-secondary ls0 nott">
													<input type="radio" name="event-registration-gender" id="event-registration-gender" autocomplete="off" value="Masculino"> Masculino
												</label>
												<label class="btn btn-outline-secondary ls0 nott">
													<input type="radio" name="event-registration-gender" id="event-registration-genderevent-registration-gender" autocomplete="off" value="Feminino"> Feminino
												</label>
											</div>
										</div>
										<div class="col-6 form-group">
											<label>Já teve contato com a Bolsa?</label>
											<select class="form-control required" name="contato-bolsa" id="contato-bolsa">
												<option value="">-- Selecione Uma Opção --</option>
												<option value="Sim, já opero na Bolsa todo dia.">Sim, já opero na Bolsa todo dia.</option>
												<option value="Sim, já investi a curto/médio/longo prazo.">Sim, já investi a curto/médio/longo prazo.</option>
												<option value="Sim, já operei na Bolsa, mas pouco.">Sim, já operei na Bolsa, mas pouco.</option>
												<option value="Sim, mas nunca operei ou investi.">Sim, mas nunca operei ou investi.</option>
												<option value="Nunca tive contato, é a primeira vez.">Nunca tive contato, é a primeira vez.</option>
											</select>
										</div>
										<div class="col-md-6 form-group">
											<label>Você passou pelo nosso educacional?</label>
											<div class="btn-group btn-group-toggle d-flex" data-toggle="buttons">
												<label class="btn btn-outline-secondary ls0 nott">
													<input type="radio" name="educacional" id="educacional" autocomplete="off" value="Sim"> Sim
												</label>
												<label class="btn btn-outline-secondary ls0 nott">
													<input type="radio" name="educacional" id="educacional" autocomplete="off" value="Não"> Não
												</label>
											</div>
										</div>
										<div class="col-md-6 col_last form-group">
											<label>Data de Nascimento:</label>
											<input type="text" class="form-control dobpicker required" name="jobs-application-date-of-birth" id="jobs-application-date-of-birth" value="" placeholder="MM/DD/YYYY" data-date-end-date="-18y">
										</div>
										<div class="col-8 form-group">
											<label>Endereço</label>
											<input type="text" name="endereco" id="endereco" class="form-control required" value="" placeholder="Coloque o endereço da sua rua, e número">
										</div>
										<div class="col-4 col_last form-group">
											<label>CEP:</label>
											<input type="text" name="cep" id="cep" class="form-control required" value="" placeholder="Coloque o seu CEP">
										</div>
										<div class="col-4 form-group">
											<label>Bairro:</label>
											<input type="text" name="bairro" id="bairro" class="form-control required" value="" placeholder="Coloque o seu bairro">
										</div>
										<div class="col-6 col_last form-group">
											<label>Município:</label>
											<input type="text" name="cidade" id="cidade" class="form-control required" value="" placeholder="Coloque a sua cidade">
										</div>
										<div class="col-2 col_last form-group">
											<div class="form-group">
												<label>Estado:</label>
												<select class="form-control required" name="uf" id="uf">
													<option value=""></option>
													<option value="AC">AC</option>
													<option value="AL">AL</option>
													<option value="AP">AP</option>
													<option value="AM">AM</option>
													<option value="BA">BA</option>
													<option value="CE">CE</option>
													<option value="DF">DF</option>
													<option value="ES">ES</option>
													<option value="GO">GO</option>
													<option value="MA">MA</option>
													<option value="MT">MT</option>
													<option value="MS">MS</option>
													<option value="MG">MG</option>
													<option value="PA">PA</option>
													<option value="PB">PB</option>
													<option value="PR">PR</option>
													<option value="PE">PE</option>
													<option value="PI">PI</option>
													<option value="RJ">RJ</option>
													<option value="RN">RN</option>
													<option value="RS">RS</option>
													<option value="RO">RO</option>
													<option value="RR">RR</option>
													<option value="SC">SC</option>
													<option value="SP">SP</option>
													<option value="SE">SE</option>
													<option value="TO">TO</option>
												</select>
											</div>
										</div>
										<div class="col-12">
											<div class="form-group">
												<label>Plataforma à Contratar</label>
												<select class="form-control required" name="plataforma" id="plataforma">
													<option value="">-- Selecione Uma --</option>
													<option value="ProfitTraining">ProfitTraining</option>
													<option value="ProfitOne">ProfitOne</option>
													<option value="ProfitPlus">ProfitPlus</option>
													<option value="ProfitPro">ProfitPro</option>
												</select>
											</div>
										</div>
										<div class="col-12">
											<div class="form-group">
												<label>Observações e Experiência:</label>
												<textarea name="event-registration-bio" id="event-registration-bio" class="form-control required" cols="30" rows="5"></textarea>
											</div>
										</div>

										<div class="col-6 col_last form-group">
											<label>Margem a ser depositada:</label>
											<input type="text" name="cidade" id="cidade" class="form-control required" value="" placeholder="Acima de R$ 500,00">
										</div>

										<div class="col-12 hidden">
											<input type="text" id="event-registration-botcheck" name="event-registration-botcheck" value="" />
										</div>
										<div class="col-12">
											<button type="submit" name="event-registration-submit" class="btn btn-secondary">Pré-Cadastrar</button>
										</div>

										<input type="hidden" name="prefix" value="event-registration-">
									</form>
S
SemiColonWebSTAFFNov 7, 2019

Hello,

We have checked out your Codes and it has several errors. To include your Custom Form Fields inside the Form, make sure that the Form Inputs name Attribute is properly configured and matches the prefix defined in your Form. Example: name="plataforma" should be replaced with name="event-registration-plataforma" . This would be applicable for all the Form Inputs. Additionally, we have also noticed that your Forms have Mixed Elements as a result of combination from different forms. Make sure that all your Form Inputs name Attribute start with event-registration- prefix and your Form ID is event-registration. Make sure that you follow the Documentation > Forms Section for complete instructions on how to use Forms.

Additionally, in the Latest Versions of Canvas, the more flexible and powerful include/form.php File is used instead of include/sendemail.php File which was used in the Older Versions of Canvas.

This will definitely fix your issues. Hope this Helps!

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

E
erudicaoinvestimentosNov 8, 2019

Good morning gentlemen. I managed to fix the issues that were pointed out by the Support Team, however the problem persists. The hourglass icon, which indicates site load, continues to run but does not send any emails.

Other forms on the site work because they are not customized. They are standard forms. This is the only custom form for the entire site, and it doesn't work at all, even after the changes.

The "include / form.php" file is set correctly, as directed by the documentation.

There were really a lot of errors in the code in my last answer, but now that they have changed, I no longer understand why. The ID has been corrected for "event-registration" and all fields have "name" and "id" with prefix "event-registration-". But since the fields are not written in English, the field names are in Portuguese. That is: instead of writing "event-registration-name" is written "event-registration-nome". Instead of "event-registration-platform" is written "event-registration-plataforma". Does this cause a problem?

I am uploading the files, and the Active URL remains the same as I provided in previous replies.

Thanks in advance, Erudição Investimentos.

E
erudicaoinvestimentosNov 8, 2019

Archives

E
erudicaoinvestimentosNov 8, 2019
<div class="col-lg-6">
									<form class="row" id="event-registration" action="include/form.php" method="post" enctype="multipart/form-data">
										<div class="form-process"></div>
										<div class="col-12 form-group">
											<label>Nome Completo (conforme documento oficial):</label>
											<input type="text" name="event-registration-nome" id="event-registration-name" class="form-control required" value="" placeholder="Coloque o seu nome completo">
										</div>
										<div class="col-6 form-group">
											<label>CPF:</label>
											<input type="text" name="event-registration-cpf" id="event-registration-cpf" class="form-control required" value="" placeholder="Coloque o seu CPF">
										</div>
										<div class="col-6 col_last form-group">
											<label>RG:</label>
											<input type="text" name="event-registration-rg" id="event-registration-rg" class="form-control required" value="" placeholder="Coloque o seu RG">
										</div>
										<div class="col-12 form-group">
											<label>Email:</label>
											<input type="email" name="event-registration-email" id="event-registration-email" class="form-control required" value="" placeholder="Coloque o seu Email">
										</div>
										<div class="col-md-6 form-group">
											<label>Gênero:</label>
											<div class="btn-group btn-group-toggle d-flex" data-toggle="buttons">
												<label class="btn btn-outline-secondary ls0 nott">
													<input type="radio" name="event-registration-sexo" id="event-registration-sexo" autocomplete="off" value="Masculino"> Masculino
												</label>
												<label class="btn btn-outline-secondary ls0 nott">
													<input type="radio" name="event-registration-sexo" id="event-registration-sexo" autocomplete="off" value="Feminino"> Feminino
												</label>
											</div>
										</div>
										<div class="col-6 form-group">
											<label>Já teve contato com a Bolsa?</label>
											<select class="form-control required" name="event-registration-contatoBolsa" id="event-registration-contatoBolsa">
												<option value="">-- Selecione Uma Opção --</option>
												<option value="Sim, já opero na Bolsa todo dia.">Sim, já opero na Bolsa todo dia.</option>
												<option value="Sim, já investi a curto/médio/longo prazo.">Sim, já investi a curto/médio/longo prazo.</option>
												<option value="Sim, já operei na Bolsa, mas pouco.">Sim, já operei na Bolsa, mas pouco.</option>
												<option value="Sim, mas nunca operei ou investi.">Sim, mas nunca operei ou investi.</option>
												<option value="Nunca tive contato, é a primeira vez.">Nunca tive contato, é a primeira vez.</option>
											</select>
										</div>
										<div class="col-md-6 form-group">
											<label>Você passou pelo nosso educacional?</label>
											<div class="btn-group btn-group-toggle d-flex" data-toggle="buttons">
												<label class="btn btn-outline-secondary ls0 nott">
													<input type="radio" name="event-registration-educacional" id="event-registration-educacional" autocomplete="off" value="Sim"> Sim
												</label>
												<label class="btn btn-outline-secondary ls0 nott">
													<input type="radio" name="event-registration-educacional" id="event-registration-educacional" autocomplete="off" value="Não"> Não
												</label>
											</div>
										</div>
										<div class="col-md-6 col_last form-group">
											<label>Data de Nascimento:</label>
											<input type="text" class="form-control dobpicker required" name="event-registration-nascimento" id="event-registration-nascimento" value="" placeholder="MM/DD/YYYY" data-date-end-date="-18y">
										</div>
										<div class="col-8 form-group">
											<label>Endereço</label>
											<input type="text" name="event-registration-endereco" id="event-registration-endereco" class="form-control required" value="" placeholder="Coloque o endereço da sua rua, e número">
										</div>
										<div class="col-4 col_last form-group">
											<label>CEP:</label>
											<input type="text" name="event-registration-cep" id="event-registration-cep" class="form-control required" value="" placeholder="Coloque o seu CEP">
										</div>
										<div class="col-4 form-group">
											<label>Bairro:</label>
											<input type="text" name="event-registration-bairro" id="event-registration-bairro" class="form-control required" value="" placeholder="Coloque o seu bairro">
										</div>
										<div class="col-6 col_last form-group">
											<label>Município:</label>
											<input type="text" name="event-registration-cidade" id="event-registration-cidade" class="form-control required" value="" placeholder="Coloque a sua cidade">
										</div>
										<div class="col-2 col_last form-group">
											<div class="form-group">
												<label>Estado:</label>
												<select class="form-control required" name="event-registration-uf" id="event-registration-uf">
													<option value=""></option>
													<option value="AC">AC</option>
													<option value="AL">AL</option>
													<option value="AP">AP</option>
													<option value="AM">AM</option>
													<option value="BA">BA</option>
													<option value="CE">CE</option>
													<option value="DF">DF</option>
													<option value="ES">ES</option>
													<option value="GO">GO</option>
													<option value="MA">MA</option>
													<option value="MT">MT</option>
													<option value="MS">MS</option>
													<option value="MG">MG</option>
													<option value="PA">PA</option>
													<option value="PB">PB</option>
													<option value="PR">PR</option>
													<option value="PE">PE</option>
													<option value="PI">PI</option>
													<option value="RJ">RJ</option>
													<option value="RN">RN</option>
													<option value="RS">RS</option>
													<option value="RO">RO</option>
													<option value="RR">RR</option>
													<option value="SC">SC</option>
													<option value="SP">SP</option>
													<option value="SE">SE</option>
													<option value="TO">TO</option>
												</select>
											</div>
										</div>
										<div class="col-12">
											<div class="form-group">
												<label>Plataforma à Contratar</label>
												<select class="form-control required" name="event-registration-plataforma" id="event-registration-plataforma">
													<option value="">-- Selecione Uma --</option>
													<option value="ProfitTraining">ProfitTraining</option>
													<option value="ProfitOne">ProfitOne</option>
													<option value="ProfitPlus">ProfitPlus</option>
													<option value="ProfitPro">ProfitPro</option>
												</select>
											</div>
										</div>
										<div class="col-12">
											<div class="form-group">
												<label>Observações e Experiência:</label>
												<textarea name="event-registration-observacao" id="event-registration-observacao" class="form-control required" cols="30" rows="5"></textarea>
											</div>
										</div>

										<div class="col-6 col_last form-group">
											<label>Margem a ser depositada:</label>
											<input type="text" name="event-registration-margem" id="event-registration-margem" class="form-control required" value="" placeholder="Acima de R$ 500,00">
										</div>

										<div class="col-12 hidden">
											<input type="text" id="event-registration-botcheck" name="event-registration-botcheck" value="" />
										</div>
										<div class="col-12">
											<button type="submit" name="event-registration-submit" class="btn btn-secondary">Pré-Cadastrar</button>
										</div>

										<input type="hidden" name="prefix" value="event-registration-">
									</form>
								</div>
E
erudicaoinvestimentosNov 11, 2019

Good morning gentlemen. I have a problem with my form. The hourglass icon, which indicates the site load does not send emails.

Other forms on the site work because they are not customized. These are standard forms. However, the form I'm having issues with is the only custom form on the site and it doesn't work.

The "include / form.php" file is set correctly as indicated in the documentation.

The ID has been set to "event-registration" and all fields have "name" and "id" prefixed with "event-registration-". But since the fields are not written in English, the field names are in English. That is: instead of writing "event-registration-name" is written "event-registration-nome". Instead of "event-registration-platform" is written "event-registration-plataforma". Does this cause any problems?

I am uploading files and the active URL remains the same as the previous answers.

Thanks in advance, Erudição Investimentos.

E
erudicaoinvestimentosNov 11, 2019
<form class="row" id="event-registration" action="include/form.php" method="post" enctype="multipart/form-data">
										<div class="form-process"></div>
										<div class="col-12 form-group">
											<label>Nome Completo (conforme documento oficial):</label>
											<input type="text" name="event-registration-nome" id="event-registration-nome" class="form-control required" value="" placeholder="Coloque o seu nome completo">
										</div>
										<div class="col-6 form-group">
											<label>CPF:</label>
											<input type="text" name="event-registration-cpf" id="event-registration-cpf" class="form-control required" value="" placeholder="Coloque o seu CPF">
										</div>
										<div class="col-6 col_last form-group">
											<label>RG:</label>
											<input type="text" name="event-registration-rg" id="event-registration-rg" class="form-control required" value="" placeholder="Coloque o seu RG">
										</div>
										<div class="col-12 form-group">
											<label>Email:</label>
											<input type="email" name="event-registration-email" id="event-registration-email" class="form-control required" value="" placeholder="Coloque o seu Email">
										</div>
										<div class="col-6 form-group">
											<label>Gênero:</label>

											<div class="form-check form-check-inline">
												<input class="form-check-input required" type="radio" name="event-registration-sexo"id="event-registration-sexo-male" value="Male">
												<label class="form-check-label nott" for="event-registration-educacional-sim">Masculino</label>
											</div>
											<div class="form-check form-check-inline">
												<input class="form-check-input" type="radio" name="event-registration-sexo"id="event-registration-sexo-female" value="Female">
												<label class="form-check-label nott" for="event-registration-sexo-female">Feminino</label>
											</div>
										</div>
										<div class="col-6 form-group">
											<label>Já teve contato com a Bolsa?</label>
											<select class="form-control required" name="event-registration-contatoBolsa" id="event-registration-contatoBolsa">
												<option value="">-- Selecione Uma Opção --</option>
												<option value="Sim, já opero na Bolsa todo dia.">Sim, já opero na Bolsa todo dia.</option>
												<option value="Sim, já investi a curto/médio/longo prazo.">Sim, já investi a curto/médio/longo prazo.</option>
												<option value="Sim, já operei na Bolsa, mas pouco.">Sim, já operei na Bolsa, mas pouco.</option>
												<option value="Sim, mas nunca operei ou investi.">Sim, mas nunca operei ou investi.</option>
												<option value="Nunca tive contato, é a primeira vez.">Nunca tive contato, é a primeira vez.</option>
											</select>
										</div>
										<div class="col-6 form-group">
											<label>Você passou pelo nosso educacional?</label>

											<div class="form-check form-check-inline">
												<input class="form-check-input required" type="radio" name="event-registration-educacional"id="event-registration-educacional-sim" value="Sim">
												<label class="form-check-label nott" for="event-registration-educacional-sim">Sim</label>
											</div>
											<div class="form-check form-check-inline">
												<input class="form-check-input" type="radio" name="event-registration-educacional"id="event-registration-educacional-nao" value="Nao">
												<label class="form-check-label nott" for="event-registration-educacional-nao">Não</label>
											</div>
										</div>
										<div class="col-md-6 col_last form-group">
											<label>Data de Nascimento:</label>
											<input type="text" class="form-control dobpicker required" name="event-registration-nascimento" id="event-registration-nascimento" value="" placeholder="MM/DD/YYYY" data-date-end-date="-18y">
										</div>
										<div class="col-8 form-group">
											<label>Endereço</label>
											<input type="text" name="event-registration-endereco" id="event-registration-endereco" class="form-control required" value="" placeholder="Coloque o endereço da sua rua, e número">
										</div>
										<div class="col-4 col_last form-group">
											<label>CEP:</label>
											<input type="text" name="event-registration-cep" id="event-registration-cep" class="form-control required" value="" placeholder="Coloque o seu CEP">
										</div>
										<div class="col-4 form-group">
											<label>Bairro:</label>
											<input type="text" name="event-registration-bairro" id="event-registration-bairro" class="form-control required" value="" placeholder="Coloque o seu bairro">
										</div>
										<div class="col-6 col_last form-group">
											<label>Município:</label>
											<input type="text" name="event-registration-cidade" id="event-registration-cidade" class="form-control required" value="" placeholder="Coloque a sua cidade">
										</div>
										<div class="col-2 col_last form-group">
											<div class="form-group">
												<label>Estado:</label>
												<select class="form-control required" name="event-registration-uf" id="event-registration-uf">
													<option value=""></option>
													<option value="AC">AC</option>
													<option value="AL">AL</option>
													<option value="AP">AP</option>
													<option value="AM">AM</option>
													<option value="BA">BA</option>
													<option value="CE">CE</option>
													<option value="DF">DF</option>
													<option value="ES">ES</option>
													<option value="GO">GO</option>
													<option value="MA">MA</option>
													<option value="MT">MT</option>
													<option value="MS">MS</option>
													<option value="MG">MG</option>
													<option value="PA">PA</option>
													<option value="PB">PB</option>
													<option value="PR">PR</option>
													<option value="PE">PE</option>
													<option value="PI">PI</option>
													<option value="RJ">RJ</option>
													<option value="RN">RN</option>
													<option value="RS">RS</option>
													<option value="RO">RO</option>
													<option value="RR">RR</option>
													<option value="SC">SC</option>
													<option value="SP">SP</option>
													<option value="SE">SE</option>
													<option value="TO">TO</option>
												</select>
											</div>
										</div>
										<div class="col-12">
											<div class="form-group">
												<label>Plataforma à Contratar</label>
												<select class="form-control required" name="event-registration-plataforma" id="event-registration-plataforma">
													<option value="">-- Selecione Uma --</option>
													<option value="ProfitTraining">ProfitTraining</option>
													<option value="ProfitOne">ProfitOne</option>
													<option value="ProfitPlus">ProfitPlus</option>
													<option value="ProfitPro">ProfitPro</option>
												</select>
											</div>
										</div>
										<div class="col-12">
											<div class="form-group">
												<label>Observações e Experiência:</label>
												<textarea name="event-registration-observacao" id="event-registration-observacao" class="form-control required" cols="30" rows="5"></textarea>
											</div>
										</div>

										<div class="col-6 col_last form-group">
											<label>Margem a ser depositada:</label>
											<input type="text" name="event-registration-margem" id="event-registration-margem" class="form-control required" value="" placeholder="Acima de R$ 500,00">
										</div>

										<div class="col-12 hidden">
											<input type="text" id="event-registration-botcheck" name="event-registration-botcheck" value="" />
										</div>
										<div class="col-12">
											<button type="submit" name="event-registration-submit" class="btn btn-secondary">Pré-Cadastrar</button>
										</div>

										<input type="hidden" name="prefix" value="event-registration-">
									</form>
S
SemiColonWebSTAFFNov 12, 2019

Hello,

Thanks for your Patience!

We have checked out your Form and the HTML appears to be perfectly fine and there appears to be an issue with your include/form.php File: https://erudicaoinvestimentos.com.br/mesa_proprietaria/pre-cadastro-mesa-proprietaria/include/form.php which is returning a 500 Internal Server Error. A 500 Internal Server Error indicates that your Server does not support some PHP functionality or there is an error in the PHP File while editing the codes. Please consider adding the following code at the very top of your include/form.php File:

error_reporting(E_ALL);

which should display all the possible errors. Please notify us about the Error Message you see, after going through the process above, so that we can provide you with more assistance on this.

Hope this Helps!

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

E
erudicaoinvestimentosJan 3, 2020

I managed to solve the problem. I had abandoned this part of the site to deliver the work, but today I returned to resolve this situation. It was a stupid mistake, it was: "include / form.php" but as the page was in another folder you had to go up one level: "../include/form.php". This was the only problem.

"Error 500" appeared because the file was not being found.
Thanks for all the help!

S
SemiColonWebSTAFFJan 5, 2020

Hello,

Glad that your issues were resolved. Thanks for your Patience.

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