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 · 834 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 Cédric, 2 years ago
4 532 1 day ago
Plugins · by DrPen, 1 month ago
2 511 1 month ago
Plugins · by renedebaaij, 2 months ago
1 383 1 month ago
Plugins · by Thomas, 2 months ago
1 402 1 month ago
Plugins · by complanar, 2 months ago
6 730 2 months ago