Simple Form to Email

Posted by Aaron on Feb 6, 2008 in CakePHP, PHP |

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
  • NewsVine
  • Reddit
  • Slashdot
  • Technorati
  • TwitThis
  • Yahoo! Buzz

Tags: , , , , ,

2 Comments

Leave a Reply

XHTML: You can use these tags:' <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Copyright © 2010 Aaron Thies All rights reserved.
Desk Mess Mirrored v1.4.3.1 theme from BuyNowShop.com.