Hi,

I have a running project with a hand full of different forms the user can 
fill out.
There is only one controller to handle the validation and the processing of 
the forms depending from its content.
As all my forms a are done via ajax requests it looks like this:

function index() {
     if ($this->request->is('ajax')) {
        if (!empty($this->request->data)) {
           $this->request->data = Sanitize::clean($this->request->data, 
array('encode' => false));

           $this->Contact->set($this->request->data['Contact']);
           $this->Contact->Behaviors->attach('Captcha');

           if($this->Contact->validates()) {
              .... logic here to determine kind of form and content

           $email = new CakeEmail();
           ... all my email settings

           if($email->send()){
           .... error handler and other stuff ....

My question now is: Can I write a script that is sending once a day a 
"fake" form request?
How can I send my data as ajax and request->data to pass the validations?

It would be so great, if someone could give me an idea how to proceed?

Thanks so much in advance!

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.


Reply via email to