Jump to content

Recommended Posts

Posted

I have a contact form that feeds to a engine.php. However when I go to fill it out, I get a 403 error )permission denied. I am using mamp, so maybe it is an issue with this. However, I was wondering if anyone else had run into this problem before.

I have the url to the .php file using "

<?php echo $config->urls->templates?>form/
Posted

You shouldn't be able to access php files directly in the templates folder - that could bring about a security problem. Better to use a module, or perhaps move engine.php to a different location that has nothing to do with ProcessWire.

  • Like 1
Posted

A dumb question I am sure, but how would you go about passing it to the template page (best practice). The engine.php will be used by several other pages that in theory will have different email addresses .

Posted

I actually do not know much about your need. I do not know wheather you are using ajax, how much differ the forms on different pages and so on...

But for simple cases the best practice seems to be to submit a form to the same page. It is Option 3 in this Ryan's post. Check out this example.

Another usefull resourse on the topic is this Soma's post.

There are even a few modules to help - this is one free one, seems like Mike Rockett is working on another one.

And of course don't forget that you can (and should) buy this one from Ryan.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...