Contact form easy solution

I just realized that in your template the name of the button is different …, so if you are using this is combination with Bastian’s controller, that might be the problem.

i get this to run :slight_smile: Its the name of the Button and i had a javascript in it, that made the problem.

Could this return a success message instead of going to other page?
I tried this but it didnt work:
if($email->send()) {
$alert = “Thank you”;

If you like an easy way to implement a form in your project, you can use this plugin: