Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Form Action URI in Grav
· 12 years ago
:) That's where I had it before I decided to move it all within my theme folder and not loose at the root.
-
Form Action URI in Grav
· 12 years ago
maybe create a folder at the root of your Grav installation, like /mandrill ? You would have to use {{ base_url_relative }}/mandrill/blahblah.php for your path though.
-
Form Action URI in Grav
· 12 years ago
OK. So where's a "safe" place to be putting my own PHP? /vendor/mandrill/ might be overwritten? How is it that PHP in /user/plugins/ can run?
-
Form Action URI in Grav
· 12 years ago
True, by default we are blocking access to PHP in the user folder for security reasons. You would have to remove |user or |php in this line of the .htaccess file. # Block access to specific file type
-
Form Action URI in Grav
· 12 years ago
Dang! That sends the browser to http://localhost/user/themes/br/php/mandrill_send.php which throws a 404 error.
-
Form Action URI in Grav
· 12 years ago
{{ theme_url }}! That's the trick I needed. Thanks. Now off to Christmas Eve for you. :)
-
Form Action URI in Grav
· 12 years ago
well you need a path in the action.. That's a URL, so you need to put a relative URL perhaps something like: <form name="contact-form" method="post" action="{{ theme_url }}/php/mandrill_send.php" d
-
Form Action URI in Grav
· 12 years ago
<form name="contact-form" method="post" action="mandrill_send.php" data-parsley-validate> This works with the script at the site's root. But I want to move it deeper and can't figure out a URI t
-
Form Action URI in Grav
· 12 years ago
can you paste the html with the form action in it?
-
Form Action URI in Grav
· 12 years ago
My contact form is at the URI /contact-me (which means the page file is at /user/pages/03.contact-me/contact.md and the template is at /user/themes/br/templates/contact.html.twig). I want to point the