sendemail.php

1 reply·opened Feb 18, 2019
S
sonatainkemiFeb 18, 2019

Hello,
I got a little problem with the submit contact form
When i try to send an email with the contact form, the page keep in reload sreen (i joined a screenshot)
But i don't know why

here my html part :

<form class="nobottommargin" id="template-contactform" name="template-contactform" action="include/sendemail.php" method="post" enctype="multipart/form-data">

<div class="form-process"></div>

<div class="col_one_third">
	<label for="template-contactform-name">Nom <small>*</small></label>
	<input type="text" id="template-contactform-name" name="template-contactform-name" value="" class="sm-form-control required" />
</div>

<div class="col_one_third">
	<label for="template-contactform-email">E-Mail <small>*</small></label>
	<input type="email" id="template-contactform-email" name="template-contactform-email" value="" class="required email sm-form-control" />
</div>

<div class="col_one_third col_last">
	<label for="template-contactform-phone">Téléphone</label>
	<input type="text" id="template-contactform-phone" name="template-contactform-phone" value="" class="sm-form-control" />
</div>

<div class="clear"></div>

<div class="col_full">
	<label for="template-contactform-subject">Sujet <small>*</small></label>
	<input type="text" id="template-contactform-subject" name="template-contactform-subject" value="" class="required sm-form-control" />
</div>

<div class="clear"></div>

<div class="col_full">
	<label for="template-contactform-message">Joindre un fichier</label>
	<input type="file" id="template-contactform-file" name="template-contactform-file" value="" class="sm-form-control" />
</div>

<div class="col_full">
	<label for="template-contactform-message">Message <small>*</small></label>
	<textarea class="required sm-form-control" id="template-contactform-message" name="template-contactform-message" rows="6" cols="30"></textarea>
									<p>* champ obligatoire</p>
</div>

<div class="col_full hidden">
	<input type="text" id="template-contactform-botcheck" name="template-contactform-botcheck" value="" class="sm-form-control" />
</div>

<div class="col_full">
	<button class="button button-3d nomargin" type="submit" id="template-contactform-submit" name="template-contactform-submit" value="submit">Envoyer</button>
</div>

</form>

And i changed only email and name on sendemail.php

$toemails[] = array(
	'email' => 'i changed this', // Your Email Address
	'name' => 'i changed this' // Your Name
		);

Thank you

S
sonatainkemiFeb 18, 2019

problem solved
the problem wasn't on the code, just on the version of php installed on the server

thank you anyway :)

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