Simple Form to Email

I have constructed a simple contact (to email) form in CakePHP 1.2 Beta. Rather than try to explain it all I have included the code for the model, controller, and view here. One note is I had to add a minLength validation check to the textarea as fields defined as ‘text’ in the model schema do not echo errors by default, as string fields do.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • NewsVine
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • TwitThis
  • YahooMyWeb

Tags: , , , , ,

2 Responses to “Simple Form to Email”

  1. Richard@Home Says:

    Thanks! Just what I was looking for :-)

  2. links for 2008-02-08 « Richard@Home Says:

    [...] Aaron Thies » Blog Archive » Simple Form to Email A simple Form to Email component for CakePHP (tags: cakephp email form) [...]

Leave a Reply