Hi Howy,

You are loosing the agruments since you are submitting the form to "/
contacts/send_page" and not "/contacts/send_page/params/here".
But you still try to pull "sendUrl" from the passed params if the
validation fails.

You could change your forma little:
$form->create('Contact', array('url' => $this->here, 'id' => 'sendpage-
form'))

or not replace the value of $this->data['Contact']['sendUrl'] if the
validation fails. I prefer the first alternative.

Either way, you need to "validate" the url passed and handle that in a
different way since displaying the form again will not solve that
problem. This data should first be validated before even displaying
the form and if the url does not pass validation the form should
probably not be displayed at all.

/Martin


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to