Jump to content

Change authentication form action


topimatge

Recommended Posts

Hello,

 

I want to modify the action in the authentication form in "authentication.php", to pass a variable in the url and show a message when the user comes back from registration.

 

I add ?variable=var at the end of $link->getPageLink('link.php', true) so it's now ({$link->getPageLink('link.php', true)}?var=var). It works, because the form action is authentication.php?var=var.

However, when I submit, it redirects to authentication.php, without the variables. I don't understand why.

Any ideas?

 

Thanks.

Link to comment
Share on other sites

the controllers might only be looking at the POST data, and not GET data which is what you have done there. i don't know this for a fact, but it would be the first thing i check

 

the next thing i would check, is that the controller is redirecting to authentication.php internally, and ignoring your extra variable.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...