PhileCMS / Phile

A flat file CMS with a swappable parser and template engine.
https://philecms.github.io/
Other
257 stars 49 forks source link

[QUESTION] How to do form processing? #230

Closed mithat closed 9 years ago

mithat commented 9 years ago

What's the recommended way to handle form processing (e.g. a contact form) in Phile? I've tried a few approaches but none have succeeded--though I'm not ruling out my own stupidity or the limitations of PHP's development server.

Schlaefer commented 9 years ago

It should be straight forward:

Every ordinary "contact form in PHP" tutorial on the net should get you going.

mithat commented 9 years ago

It looks like I was falling victim to the behavior of PHP's built-in development server. I have the PHP form processing script in the root directory. When I try a submission with PHP's built-in server, I get 404. I just tested in an Apache-based environment, and it works as expected.

I suspect PHP's server assumes everything is routed through index.php, even requests that end in .php.

Schlaefer commented 9 years ago

Ok. So I guess we can close this.