Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Use plugin php script then the submit button triggered

first-time

Started by Mirko Knorr 8 years ago · 0 replies · 821 views
8 years ago

I never write a grav plugin before, so sry if my question is trivial.

My issue is to write a plugin to validate if an email is correct or not. The script is finish now and I would like trigger it when users submit a form on my website. I read the documentation but still don't know it.

The function:

TXT
verifyEmail($toemail) {
  ...
}

Thank you in advance

Suggested topics

Topic Participants Replies Views Activity
Plugins · by DrPen, 1 month ago
2 477 1 month ago
Plugins · by renedebaaij, 2 months ago
1 349 1 month ago
Plugins · by Thomas, 1 month ago
1 374 1 month ago
Plugins · by complanar, 2 months ago
6 698 2 months ago
Plugins · by BenLaKnet, 2 months ago
1 641 2 months ago