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 · 784 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, 3 weeks ago
2 285 3 weeks ago
Plugins · by renedebaaij, 4 weeks ago
1 262 3 weeks ago
Plugins · by Thomas, 4 weeks ago
1 275 4 weeks ago
Plugins · by complanar, 2 months ago
6 596 1 month ago
Plugins · by BenLaKnet, 1 month ago
1 499 1 month ago