Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Use plugin php script then the submit button triggered

first-time

Started by Mirko Knorr 8 years ago · 0 replies · 642 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 complanar, 5 days ago
0 117 5 days ago
Plugins · by Vladimir Novak, 1 month ago
3 581 1 month ago
Plugins · by Mathieu Lecouturier, 1 month ago
3 394 1 month ago
Plugins · by Slebeig, 2 months ago
1 509 2 months ago
Plugins · by Rene, 3 months ago
2 701 3 months ago