Skip to content
Grav 2.0 is officially stable. Read the announcement →
Plugins

Plugin fails ever and ever again

Started by Niels 8 years ago · 1 replies · 785 views
8 years ago

Hey,
I am making a Plugin for my Site. This Plugin gets his input from the Html Forms. But it doesnt work. At first i tried something like this:

< html>
<body>

HTML
<form action="test.php" method="post">
Name: <input type="text" name="name"><br>
E-mail: <input type="text" name="email"><br>
<input type="submit">
</form>

</body>
</html> 

And on the .php file:

PHP
<html>
<body>

Welcome <?php echo $_POST["name"]; ?><br>
Your email address is: <?php echo $_POST["email"]; ?>

</body>
</html> 

( I called the File test.php and put it in the pages folder )

It didnt worked so i decided to make a Plugin with the new Devtools Plugin. Because it didn't worked i followd step by Step the Grav Documention about it. ---> i had excettly the Same Code but it still didn't work.
Can Someone please Help me? 😕

Greatings,

Niels

8 years ago

@Niels It makes me curious about which docs you followed step by step. Would you mind sharing the url?

last edited 07/04/18 by pamtbaau

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Mathieu Lecouturier, 2 days ago
0 57 2 days ago
Plugins · by Slebeig, 4 weeks ago
1 275 4 weeks ago
Plugins · by Rene, 2 months ago
2 436 2 months ago
Plugins · by Xavier, 2 months ago
2 350 2 months ago
Plugins · by Luka Prinčič, 7 years ago
3 1573 2 months ago