In my home
I have certain options that I give to the user. Each option has as action
a file in .php
. After the user option is submitted and validated by the .php
file, I send the user to the redirected home with a success or error message, for example: home.php?sucesso=1
The options that the user has in the home, also has the other pages.
Now as I have, the user clicking an option on a page other than home
is redirected to home
and not to the page where he clicked the option.
I will have to duplicate these files .php
of action
where I validate the user options and in each of these .php
redirect files to the page I want? It seems to me wrong.
How can I best resolve this situation?