By default the validators only validate on POST requests.. I suspect
you also validate on GET (check your validation yaml file).
I would stick with the POST validation, and check within the action
whether it was accessed with POST before you take action.

GET shows form, POST (only reached with valid data) executes
something..

Syntax is:

if( $this -> getRequest() -> getMethod() == sfRequest::POST ) {
    //do something
}
//show form

Hope this helps,
Daniel

On May 10, 7:41 pm, Guillermo Rauch <[EMAIL PROTECTED]> wrote:
> On May 10, 2008, at 11:23 PM, Daevid Vincent wrote:
>
> > We have a system where the user puts in an invitation code and then
> > is redirected to a registration page.
> > I can’t figure out how to prevent this from happening the first time
> > the user see’s the page.
>
> Are you ::forward'ing or ::redirect'ing?
>
> Guillermo Rauchhttp://devthought.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to