Why are my profile pages not generating which I click on 'submit'? does anyone know what I am doing wrong here? I am trying to create profile pages for each user, but when I click the submit button, it doesn't take me to the user's page.              

This is my form code:

&lt;form method="get" accept-charset="UTF-8" class="form"    action="/profile/{{ user }}"&gt; &lt;input type="hidden" name="action" value="users/login"&gt;

&lt;input id="loginName" type="text" name="loginName" placeholder="username"
    value="{{ craft.session.rememberedUsername }}"&gt;

&lt;input id="password" type="password" name="password" placeholder="secret password"&gt;

&lt;input type="submit" value="Login" class="login_enter"&gt;

&lt;label class="remember"&gt;
    &lt;input type="checkbox" name="rememberMe" value="1" checked&gt;
    Remember me
&lt;/label&gt;


{% if errorMessage is defined %}
    &lt;p class="remember"&gt;{{ errorMessage }}&lt;/p&gt;
{% endif %}




I have a profile folder and an _profile template. I also added a custom route in the admin panel with the following URI

    profile/*


And a link to the template

    profile/_profile


The profile index file looks like this:

{% set users = craft.users %}
{% for user in users %}
&lt;a href="/profile/{{ user }}"&gt;{{ user }}&lt;/a&gt;
{% endfor %}


And the _profile file looks like this

{% extends "_account_register_layout" %}
{% set title = "account" %}
{% set user = craft.users.username( craft.request.segment(2) ).first() %}
Try setting the action and redirect as hidden inputs, see below:

&lt;form method="post"&gt;
    &lt;input type="hidden" name="action" value="users/saveUser"&gt;
    &lt;input type="hidden" name="redirect" value="/profile/{{ currentUser.username }}"&gt;