Skip to content
● Critical PHP security fixes are out: update PHP on your Grav sites. What to do →

Use plugin php script then the submit button triggered

first-time

Started by Mirko Knorr 8 years ago · 0 replies · 745 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, 2 days ago
1 60 2 hours ago
Plugins · by renedebaaij, 1 week ago
1 132 3 days ago
Plugins · by Thomas, 6 days ago
1 140 5 days ago
Plugins · by complanar, 4 weeks ago
6 468 3 weeks ago
Plugins · by BenLaKnet, 3 weeks ago
1 289 3 weeks ago